ftp_exec() not working
Posted: Mon May 22, 2006 10:20 am
Can anyone tell me if there is an known bug with php's ftp_exec() function not working. Every time I execute the code on an FC3 server php 5. I get an error message saying ...
Warning: ftp_exec(): Unknown SITE command.
the code looks something like this...
<?php
$conn = ftp_connect($host, $port);
$command = "ls -l ";
if (ftp_exec($conn, $command)) {
echo "$command executed successfully\n";
} else {
echo "could not execute $command\n";
}
?>

Warning: ftp_exec(): Unknown SITE command.
the code looks something like this...
<?php
$conn = ftp_connect($host, $port);
$command = "ls -l ";
if (ftp_exec($conn, $command)) {
echo "$command executed successfully\n";
} else {
echo "could not execute $command\n";
}
?>