scandir and ftp wrapper

From: Date: Mon, 02 Apr 2007 12:08:15 +0000
Subject: scandir and ftp wrapper
Groups: php.general 
Request: Send a blank email to php-general+get-251918@lists.php.net to get a copy of this message
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.

« previous php.general (#251918) next »