For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > May 2006 > Re: PHP-generated link to local file doesn't work when clicked on.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: PHP-generated link to local file doesn't work when clicked on.
David Haynes

2006-05-26, 6:58 pm

wylbur37 wrote:
> I have several webpages of HTML code, many of them containing links
> to local files on my harddrive (just like the one show above),
> and they work just fine when the webpage is opened explicitly
> from the browser (and not passed through a local server).


Well... wouldn't this lead you to think about the web server blocking
the access to those files? I bet C:\pictures is not part of the normal
web space for your server. Try a simple page such as:

<html>
<head></head>
<body>
<img src="C:/pictures/xyz.jpg">
</body>
</html>

What do your web server logs tell you?

-david-

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com