RE: [PHP] fopen() on a network share?
| From: | bruce | Date: | Tue, 16 Jun 2009 15:44:01 +0000 |
| Subject: | RE: [PHP] fopen() on a network share? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-294098@lists.php.net to get a copy of this message | ||
so.. if he can access the drive using cmdline functions...
why not simply use a shell cmd within php to access the smb share/file, and
slurp/suck in the file/data that way... aside from the potential security
issues with using shell functions..
-----Original Message-----
From: Shawn McKenzie [mailto:nospam@mckenzies.net]
Sent: Tuesday, June 16, 2009 8:40 AM
To: php-general@lists.php.net
Subject: Re: [PHP] fopen() on a network share?
jenai tomaka wrote:
> Hi, wht dont you try it with IP, ex:
fopen('http://11.12.13.14/sharename/folder/file.xml',
'w');
Well, because he's not trying to open a file on an http server, he's
trying to open a file over SMB. I haven't seen an SMB wrapper for PHP
so smb:// won't work.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php