You can create your own custom function:
function ftp_is_directory($ftp_conn, $dir)
{
$pushd = ftp_pwd($ftp_conn);
if ($pushd !== false && @ftp_chdir($ftp_conn, $dir))
{
ftp_chdir($ftp_conn, $pushd);
return true;
}
return false;
}
You can create your own function:
function ftp_is_directory($ftp_conn, $dir)
{
$pushd = ftp_pwd($ftp_conn);
if ($pushd !== false && @ftp_chdir($ftp_conn, $dir))
{
ftp_chdir($ftp_conn, $pushd);
return true;
}
return false;
}