Re: scandir and ftp wrapper
| From: | John Ewing | Date: | Thu, 12 Apr 2007 14:07:45 +0000 |
| Subject: | Re: scandir and ftp wrapper | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-252730@lists.php.net to get a copy of this message | ||
Still can't get it to work, seems to be a problem generally with the ftp
wrapper.
If I try something really basic like
echo file_get_contents('ftp://user:pass@ftp.example.com/file.txt');
I get an empty string with no error messages.
If I copy and paste the ftp url string into firefox it displays the file, so
the url is correct
If I try this
echo file_get_contents('http://www.google.com');
I get the html displayed. I have been testing this code using the php cli if
that makes any difference.
Really could use some suggestions on this one
Thanks
J.
On 4/2/07, j <johnewing1@gmail.com> wrote:
Hi I have a question about scandir I have been trying to track down problems after upgrading from 5.1.6 to 5.2.1. I have been getting errors with a section of code that does something similar to the following $fileList=scandir("ftp://user:pass@ftp.example.com/"); I get the following error. Warning: scandir(ftp://...@ftp.example.com/): failed to open dir: not implemented in /path/to/file.php on line 9 I checked phpinfo and ftp is included in the registered streams list. allow_url_fopen is set to on. Any suggestions why this code is not working? Thanks j. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php