command
command($server,$command,$response="2",$transfer_attributes="1",$context="1"); - send FTP command
The function accepts parameters as input:
$server – address of an already connected FTP connection$command – ftp command$response – response type$transfer_attributes – transfer attributes$context – transmission context
After testing, the function returns the result of its work to the script :
true – successfully executedfalse – errors occurred during execution