Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: CGI Image on localhost

by rchiav (Deacon)
on Dec 21, 2003 at 20:36 UTC ( #316238=note: print w/replies, xml ) Need Help??

in reply to CGI Image on localhost

Did you try to view the source of the HTML from your browser?

Did you see if you can type in the path to the image in your browser?

Did you see if the path that works in the browser is the same as the path in the HTML?

Replies are listed 'Best First'.
Re: Re: CGI Image on localhost
by eoin (Monk) on Dec 21, 2003 at 20:45 UTC
    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.

      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.


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

        I was just asking for help

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2021-07-26 00:21 GMT
Find Nodes?
    Voting Booth?

    No recent polls found