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.
Chuck Anderson

2006-05-26, 6:58 pm

Martin Jay wrote:
> In message <1148654190.083042.204000@i40g2000cwc.googlegroups.com>,
> wylbur37 <wylbur37nospam@yahoo.com> writes
>
>
> It's disabled for security reasons.
>
> There's more information about this at:
> <http://kb.mozillazine.org/Links_to_local_pages_don't_work>
>

Yes. And that page contains the following instructions for disabling a
preference in Firefox.

"Type about :config <http://kb.mozillazine.org/about :config> into the
Location bar and hit Enter. Find the entry for *security.checkloaduri*
and change its value to *false* by double-clicking it. Then, restart
your browser."

This is a possible security risk, though, so another solution is to add
an alias to apache config file.

In httpd.conf, I have added:
Alias /cdrive/ "c:/"

Then, in Php scripts, when I want to access a local file I use:
http://localhost/cdrive/............

or

/cdrive/......

--
*****************************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Everyone's journey should be different,
so that we all are enriched
in new and endless ways
*****************************
Sponsored Links







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

Copyright 2008 codecomments.com