Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Re: Re: CGI Image on localhost

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


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

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?"

Replies are listed 'Best First'.
Re: Re: Re: Re: CGI Image on localhost
by eoin (Monk) on Dec 21, 2003 at 23:07 UTC
    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://316253]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (1)
As of 2021-07-27 02:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?