note 105461 added to ftp.examples-basic

From: Date: Fri, 19 Aug 2011 15:33:50 +0000
Subject: note 105461 added to ftp.examples-basic
Groups: php.notes 
Request: Send a blank email to php-notes+get-182591@lists.php.net to get a copy of this message
The example is a bit off. It would be better to check the status of ftp_connect before you try to do ftp_login, otherwise you may try to pass false to ftp_login and get: PHP Warning: ftp_login() expects parameter 1 to be resource, boolean given in ---- Server IP: 69.147.83.197 Probable Submitter: 65.213.144.254 ---- Manual Page -- http://www.php.net/manual/en/ftp.examples-basic.php Edit -- https://master.php.net/note/edit/105461 Del: integrated -- https://master.php.net/note/delete/105461/integrated Del: useless -- https://master.php.net/note/delete/105461/useless Del: bad code -- https://master.php.net/note/delete/105461/bad+code Del: spam -- https://master.php.net/note/delete/105461/spam Del: non-english -- https://master.php.net/note/delete/105461/non-english Del: in docs -- https://master.php.net/note/delete/105461/in+docs Del: other reasons-- https://master.php.net/note/delete/105461 Reject -- https://master.php.net/note/reject/105461 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#182591) next »