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.
all the best
Grant Rutherford wrote:
Hello,
Is there a way that PHP can allow a user to browse the files on the server's network, and ultimately send the file to the user?
I'm making a database interface with PHP to be used internally on our network. Through a PHP interface, the user wants to browse their network and find a file, and insert the file's path into the database. The user then wants the database to display a link, which when clicked will open the file. They want this to work in Mozilla or IE, on both windows and linux machines. I tried making the path a link with file://"path", but Mozilla wouldn't follow the link (probably a security thing; it makes sense that links shouldn't open local files).
Is there a way that I can give PHP the network path (through $_POST for example), and it would return the file instead of an HTML document?
Thanks for any help, Grant
-- 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