Problem with ftp_rmdir

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello everybody,

I'm using function ftp_rmdir to create some aplication and for testing I've used following sample from php.net

if (ftp_rmdir($conn_id, $dir)) {
   echo "Successfully deleted $dir\n";
} else {
   echo "There was a problem while deleting $dir\n";
}

Command really removed specified directory, but stopped script as well. So there is no more output about "Successfully deleting" of this file after line with ftp_rmdir....

When I tried this:
$x=ftp_rmdir($conn_id, $dir);
echo "start $x end";

the second line with echo wasn't put to output... It seems like there is exit function after ftp_rmdir...

Does anybody knows, what goes wrong??
Thanx

Pavel

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux