RE: [PHP] fopen() for ftp

From: Date: Thu, 07 Sep 2000 21:29:16 +0000
Subject: RE: [PHP] fopen() for ftp
Groups: php.general 
Request: Send a blank email to php-general+get-15779@lists.php.net to get a copy of this message
> I'm trying the following command: > $fh = fopen( > > "ftp://user:pass@my.server.com/newsedge_files/newsedge_09-07-2 > 000.zip", "r" > ); > the file exists, the user/pw is good, and this works if I cut and > paste it in my browser's address. However, PHP immediately > comes back saying the file was not found. There is not even a > lag indicative of the script trying to connect FTP. The server I'm > trying to connect to is part of our network, if that matters any. > Am I doing something wrong? Why is it coming back so quickly > saying the file wasn't found? > I'm using PHP 3.0.5 (and no, there is no hope of upgrading; > my lobbying for that has failed). > Any help would be appreciated!! Update: I got it to work if I open it with the mode "a"... well, work in the sense that I'm no longer getting a "file not found" error message, but when it opens, the file is either empty or at EOF and I'm not sure why... Again, am I doing something wrong? Chris

« previous php.general (#15779) next »