note 88262 modified in function.ftp-chdir by danbrown
| From: | danbrown@php.net | Date: | Wed, 11 Mar 2009 13:56:55 +0000 |
| Subject: | note 88262 modified in function.ftp-chdir by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-151727@lists.php.net to get a copy of this message | ||
i think ftp_cdup can make it more nice
function dirExists($ftp, $directory = '.') {
if (@ftp_chdir($ftp, $directory)) {
ftp_cdup($ftp);
return TRUE;
} return FALSE;
}
--was--
i think ftp_cdup can make it more nice
function dirExists($ftp, $directory = '.') {
if (@ftp_chdir($ftp, $directory)) {
ftp_cdup($ftp);
return TRUE;
} return FALSE;
}
http://php.net/manual/en/function.ftp-chdir.php