PHP ftp_exec() Function

PHP ftp_exec() Function


Define :

In this tutorial we have to learn about PHP ftp_exec() Function.The ftp_exec() Function is inbuilt function in php.This function is used to request execution of a specified command on the FTP server.

Syntax

ftp_exec(ftp, command)

Parameters

ftp Required. Specify the FTP connection to use.
command Required. Specify the command to execute.

Given below example shows the usage of PHP ftp_exec() Function :