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@xxxxxxxxxxxxxxx/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@xxxxxxxxx> 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@xxxxxxxxxxxxxxx/"); I get the following error. Warning: scandir(ftp://...@xxxxxxxxxxxxxxx/): 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