FTP Errors

From: Date: Mon, 13 Oct 2003 18:36:00 +0000
Subject: FTP Errors
Groups: php.general 
Request: Send a blank email to php-general+get-166012@lists.php.net to get a copy of this message
Hi, I was wondering if anyone knew how to retrieve connection error information when using FTP in php? By this I mean, when connecting to a ftp server that is full, ftp_connect just returns FALSE, and not the 421 error returned by the server. FALSE is also the response given when attempting to connect to a ftp server that doesn't exist or isn't running. I want to be able to tell the difference so I can inform the end user to retry if the server is just busy, or inform them that the site is down and to try again later if it really is down. Any ideas would be really appreciated. Thanks, Ian

« previous php.general (#166012) next »