Note that the $command can not contains any illegal character such as \n, \r, \t, or this function will return NULL.
Try using the trim() before calling ftp_raw().
<?php
ftp_raw($connid, trim($command));
?>
Note that the $command can not contains any illegal character such as \n, \r, \t, or this function will return NULL.
Try using the trim() before calling ftp_raw().
<?php
ftp_raw($connid, trim($command));
?>