Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Re: CGI Image on localhost

by eoin (Monk)
on Dec 21, 2003 at 20:45 UTC ( [id://316241]=note: print w/replies, xml ) Need Help??


in reply to Re: CGI Image on localhost
in thread CGI Image on localhost

Do you mean just "F:\foo\bar\apache\htdocs\images\image.jpg"?
I thought of that but Is there any other way??

All the Best, Eoin...

If everything seems to be going well, you obviously don't know what the hell is going on.

Replies are listed 'Best First'.
Re: Re: Re: CGI Image on localhost
by rchiav (Deacon) on Dec 21, 2003 at 22:16 UTC
    I mean, did you do any of that? It seems like you're not trying to solve your own problem and want us to guess what's wrong for you.

    The image is not displaying. WHY isn't it displaying?? Have you looked at the source of the HTML and see how it's refrenceing the picture? We can't guess what the IMG tag is pointing to. if you

    r images are located at http://localhost/images/myimage.jpg and in the generated HTML it's http://localhost/somethingelse/myimage.jpg then that's your problem. Your quesion is like me saying "My Car won't start. Why?"

      NO I was not trying to get you to solve my problem.

      I wrote the HTML myself and was only asking how do I link to it from a different folder

      I.E. CGI SCRIPT "Apache2\cgi-bin\script.cgi"
           HTML       "Apache2\data\home.html"
           IMAGES     "Apache2\htdocs\images\image.jpg"
      I wanted to know what should I put in the HTML to let me link to the IMAGES from the CGI SCRIPT. I knew that I could simply put in F:\foo\bar\Apache2\htdocs\images\image.jpg but I didn't WANT to do this as, on a remote server I wouldn't have access to the root directory e.g. F:\. I wanted to know how do you go link in the HTML down one directory and up two.

      or

      should I just generate the HTML using perl and CGI and maybe HTML::Template. or something like that.

      I was just asking for help
      Eoin.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://316241]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-19 06:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found