Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pictures not displaying

Status
Not open for further replies.

EthernetSummit

Programmer
Mar 22, 2005
3
GB
I have Apache set up on Windows XP. Perl is outputting an HTML file, all is going well (fortunatelty), but pictures, external css files and external javascript files aren't being used.

They just don't show up. I have them in the cgi-bin directory, and in the error logs it says that the files aren't executable. So I moved them somewhere else (E:\website\img\) and I tried to reference them using everything.

E:/website/img/ (and using backslashes)
file:///E:/website/img/

Nothing!

How can I refernce them?

my perl script is


where would I put an image to be referenced at

Thank you in advance
 
If the images are to be fetched through the Apache, the "src" attributes of your IMG tags should be URLs, not filesystem paths. Something like:

[ignore<img src="[/ignore]

If E:\website is the document root of your website, and E:\website\img is a directory under it, then that's where you should put your images.


Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top