note 87256 added to function.ftp-chdir

From: Date: Wed, 26 Nov 2008 21:12:32 +0000
Subject: note 87256 added to function.ftp-chdir
Groups: php.notes 
Request: Send a blank email to php-notes+get-147001@lists.php.net to get a copy of this message
Works like the other functions in this page's notes, but this one doesn't make use of a global FTP connection, so it takes parameters like the other functions in the extension function ftp_directory_exists($ftp, $dir) { // Get the current working directory $origin = ftp_pwd($ftp); // Attempt to change directory, suppress errors if (@ftp_chdir($ftp, $dir)) { // If the directory exists, set back to origin ftp_chdir($ftp, $origin); return true; } // Directory does not exist return false; } ---- Server IP: 208.69.120.35 Probable Submitter: 66.238.166.2 ---- Manual Page -- http://www.php.net/manual/en/function.ftp-chdir.php Edit -- https://master.php.net/note/edit/87256 Del: integrated -- https://master.php.net/note/delete/87256/integrated Del: useless -- https://master.php.net/note/delete/87256/useless Del: bad code -- https://master.php.net/note/delete/87256/bad+code Del: spam -- https://master.php.net/note/delete/87256/spam Del: non-english -- https://master.php.net/note/delete/87256/non-english Del: in docs -- https://master.php.net/note/delete/87256/in+docs Del: other reasons-- https://master.php.net/note/delete/87256 Reject -- https://master.php.net/note/reject/87256 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#147001) next »