Problems with Net_FTP
| From: | Jan Jonas | Date: | Fri, 06 Aug 2004 16:13:38 +0000 |
| Subject: | Problems with Net_FTP | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-32490@lists.php.net to get a copy of this message | ||
The first problem with Net_FTP is, that the function ls returns nothing. I think this is'nt a problem of the class, beacuse the php-function ftp_rawlist also returns an empty array :(. It seems to be the problem of the ftp-server, because I suceeded in trying ftp_rawlist with an other ftp-server. Because of other dependencies I'm have to use temporary PHP Version 4.3.4. Is there a bug in my old PHP version?
The other more-PEAR-specific problem is, that i set the errorhandling at the beginning of the script:
PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'handleError');
my handleerror-Function displays the errormessage and stops the script with die().
Now I want to use the function Net_FTP::putRecursive(). But this fails, because the function calls the function Net_FTP::cd to check if the directory exist on the FTP-Server. If not cd returns a PEAR error and the function putRecursive() should create the directors, but my erreorhandling-funciton is called because an error was thrown and the script stops :(.
I'm using Net_FTP 1.2.
Regards
Jan