note 68427 added to function.ftp-systype
| From: | Buckwheat469 at hotmail dot com | Date: | Wed, 26 Jul 2006 16:41:47 +0000 |
| Subject: | note 68427 added to function.ftp-systype | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-115222@lists.php.net to get a copy of this message | ||
ftp_systype can be a good way of checking the state of a connection, since PHP doesn't have a
better system to check the state of an ftp connection (is_connected would be nice).
if (!($type = ftp_systype($conn_id))) {
echo "FTP connection has failed! Trying again.\n";
$conn_id = ftp_connect($ftp_server);
$login_result = ftp_login($conn_id, $ftp_user, $ftp_pass);
}
----
Server IP: 64.71.164.2
Probable Submitter: 70.90.177.114
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.ftp-systype.php
Edit -- http://master.php.net/note/edit/68427
Del: integrated -- http://master.php.net/note/delete/68427/integrated
Del: useless -- http://master.php.net/note/delete/68427/useless
Del: bad code -- http://master.php.net/note/delete/68427/bad+code
Del: spam -- http://master.php.net/note/delete/68427/spam
Del: non-english -- http://master.php.net/note/delete/68427/non-english
Del: in docs -- http://master.php.net/note/delete/68427/in+docs
Del: other reasons-- http://master.php.net/note/delete/68427
Reject -- http://master.php.net/note/reject/68427
Search -- http://master.php.net/manage/user-notes.php