note 91722 modified in function.ftp-rawlist by danbrown
| From: | danbrown@php.net | Date: | Wed, 24 Jun 2009 16:47:35 +0000 |
| Subject: | note 91722 modified in function.ftp-rawlist by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-157386@lists.php.net to get a copy of this message | ||
this is function to check for dirs
<?php
function ftp_isdir($connect_id,$dir)
{
if(ftp_chdir($connect_id,$dir))
{
ftp_cdup($connect_id);
return true;
}
else
{
return false;
}
}
?>
--was--
this is function to check for dirs
<?
function ftp_isdir($connect_id,$dir)
{
if(ftp_chdir($connect_id,$dir))
{
ftp_cdup($connect_id);
return true;
}
else
{
return false;
}
}
?>
http://php.net/manual/en/function.ftp-rawlist.php