note 68575 added to function.ftp-nlist

From: Date: Wed, 02 Aug 2006 11:10:42 +0000
Subject: note 68575 added to function.ftp-nlist
Groups: php.notes 
Request: Send a blank email to php-notes+get-115443@lists.php.net to get a copy of this message
To look if a dir is isset you can try to change to the path, if it isn't a dir, ftp_chdir will return false //Looks if a directory ($dir) is isset //returns true or false function ftp_is_dir( $conn_id, $dir ) { if( @ftp_chdir( $conn_id, $dir ) ) { ftp_chdir( $conn_id, '/../' ); return true; } else { return false; } } ---- Server IP: 217.13.201.10 Probable Submitter: 85.176.50.3 ---- 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-nlist.php Edit -- https://master.php.net/note/edit/68575 Del: integrated -- https://master.php.net/note/delete/68575/integrated Del: useless -- https://master.php.net/note/delete/68575/useless Del: bad code -- https://master.php.net/note/delete/68575/bad+code Del: spam -- https://master.php.net/note/delete/68575/spam Del: non-english -- https://master.php.net/note/delete/68575/non-english Del: in docs -- https://master.php.net/note/delete/68575/in+docs Del: other reasons-- https://master.php.net/note/delete/68575 Reject -- https://master.php.net/note/reject/68575 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#115443) next »