|
Posted by Martin Jay on 05/31/06 19:53
In message <1149101295.601620.259980@c74g2000cwc.googlegroups.com>,
wylbur37 <wylbur37nospam@yahoo.com> writes
>Martin Jay wrote:
>> wylbur37 <wylbur37nospam@yahoo.com> writes
>> >I wrote a simple PHP script (called test3.php) that I'm running by
>> >putting the following URL in the address bar of the browser (Firefox)
>> >...
>> > http://localhost/test3.php
>> >
>> >The script generates the following link using the echo statement ...
>> >
>> > <a href="file:///C:/pictures/xyz.jpg"> Picture </a>
>> >
>> >("C:/pictures/xyz.jpg", as you can guess by now, is an image file on
>> >my harddrive, but it's not in the document root).
>> >
>> >When I clicked on the link, nothing happened.
>>
>> It's disabled for security reasons.
>>
>> There's more information about this at:
>> <http://kb.mozillazine.org/Links_to_local_pages_don't_work>
>
>What's the use of Mozilla/Firefox refusing to honor links to local
>files "for security reasons" when any website can still access
>a user's files anyway by means of a PHP script?
I don't understand what you mean. Can you give an example of a PHP
script, running on a server, being able to access files on a user's
(client) machine?
--
Martin Jay
Phone/SMS: +44 7740 191877
Fax: +44 870 915 2124
Navigation:
[Reply to this message]
|