logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Unable to load images in local server
Author
winky



Joined: 01 Nov 2006
Posts: 2

PostPosted: Wed 01 Nov '06 17:11    Post subject: Unable to load images in local server Reply with quote

Hi...I'm new to using a local server on my machine. I have a problem with loading any image from within a web page using the IMG tag. What happens is I get a placeholder but no image. Error log reports "File does not exist" however, it is in the right location. If I use the IMG tag with something like <img src="C:\location\filename.ext\ alt=""> it works but, is annoying and I know this is not the right syntax. Everything else works fine. Presently, using WAMP5 1.65 on Windows XP Service pack 2. Is there a re-direct I need in one of the conf files? I have tried other installations with the same problem. Turned of active-x in browsers as well. I am lost for an answer, any help appreciated.
Thanks
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Wed 01 Nov '06 17:22    Post subject: Reply with quote

*g*

On a server you have to think a bit different! paths must be relativ

if the file you call on http://localhost/file.htm is in C:\location and the image is there as well

<img scr="filename.ext" ....
Back to top
winky



Joined: 01 Nov 2006
Posts: 2

PostPosted: Wed 01 Nov '06 18:17    Post subject: Unable to load images in local server Reply with quote

Thanks A-LOT. The one thing I didn't try was leaving the absolute path out. Who would have thunk. I was using
"../server/www/filename.ext" where the file resides. This was driving me crazy. Works fine now.
Thanks again. Winky
Back to top


Reply to topic   Topic: Unable to load images in local server View previous topic :: View next topic
Post new topic   Forum Index -> Apache