RE: [PHP] fopen() on a network share?

[email protected] ("bruce")
Newsgroups php.general
Message-ID <[email protected]>
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:[email protected]]
Sent: Tuesday, June 16, 2009 8:40 AM
To: [email protected]
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.