PHP ftp_exec() FunctionThe ftp_exec() function is used to request for execution of a command on the FTP server. This function was introduced in PHP 4.0.3. Syntax:
ReturnsThe ftp_exec() function returns true on success or false on failure. Example 1ExplanationIn the above example, we are requesting for a 'Is -al' command to execute on FTP server. Example 2In the above example, we are requesting to our ftp server to execute 'lcd' command if it is executed, then it echo "executed successfully" if not, then it echo "could not execute".
Next TopicPHP FTP
|