RE: [PHP] Downloading file from local network machine
| From: | Manuel Lemos | Date: | Sat, 06 Dec 2008 00:13:05 +0000 |
| Subject: | RE: [PHP] Downloading file from local network machine | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-284216@lists.php.net to get a copy of this message | ||
Hello Jonathan,
On Fri, 2008-12-05 at 17:32 +0000, Mayer, Jonathan wrote:
> Thanks Wolf :)
>
> Yup, I had considered that, although there could be up to 8 different servers so that's 8
> seperately mapped drives.
>
> If that's the simplest/neatest way, I'll do that, although I did wonder whether there
> was some other clever another way around it.
Actually there is a much better way to achieve that. I just presented it
at a Microsoft Web Development summit that was mostly about PHP. Here
follows the slide presentation. Check slide 5.
http://www.slideshare.net/manuellemos/what-could-microsoft-do-to-make-php-run-better-on-windows-presentation/
It consists add a PHP stream wrapper class that allows you to use fopen
and other PHP file access functions with a file name URL like this:
smb://user:password@host/path/to/share
The stream warpper class is here:
http://www.phpclasses.org/smb4php
--
Regards,
Manuel Lemos
Find and post PHP jobs
http://www.phpclasses.org/jobs/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/