More suprising is that the html you have below works perfectly on my mozzilla 1.4 running on Red Hat 9 :-) provided i do have this
exact path on my computer. /home/users/grant/Parts.txt
From what you are saying it looks like in your case '/home/users/grant/Parts.txt' does not exist on your computer but exists on another one. I am sorry to say PHP being a server side scripting language indeed has a huge effect on this.
One suggestion that i have is for you to you NFS (ouch) or samba and place that link in your php code. If you use NFS and mount it properly yes PHP being server side solution may not matter. :-)
Other alternative is for you to use good old FTP. PHP has an FTP api, however since you are on the same network you can even create links such as fttp://othermachine/home/users/grant/parts.txt and it would work just fine. IN this case mozzila will open the ftp connection and fetch the file for you.
all the best raditha
Grant Rutherford wrote:
Thanks for your reply,
I think my mail was blocked for a few days here. Sorry for the delay.
<a HREF='file:///home/users/grant/Parts.txt'>file:///home/users/grant/Parts.txt</a>
This link will not work in Mozilla. (Does nothing) However, if I copy and paste the address into the addess bar, it works fine. I suspect this is a security thing.
I don't think that PHP being server side should make a huge difference. The client and server are on the same network in this case, and the files would be on another server on the same network. Is there a way that the PHP server can access the file over the network and then send it to the client? I don't think I can make the client open the file itself.
Thanks, Grant
[EMAIL PROTECTED] wrote:
Bit suprised that mozilla didn't let you access the file using the 'file://' notation. Did you actually use three slashes? ie it should be
'file:///home/grant' and not 'file://home/grant/'
There isn't any other way in which you can use PHP to access files on a hard disk. PHP is a server side scripting language. You could always try signed java applets.
-- http://www.raditha.com/php/progress.php A progress bar for PHP file uploads.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php