ftp_exec

PHP 4 >= 4.0.3, PHP 5, PHP 7, PHP 8
ftp_exec - Requests execution of a command on the FTP server
Manual
Code Examples

ftp_exec( FTP\Connection$ftp, string$command ): bool

Sends a SITE EXEC command request to the FTP server.

Parameters

ftp

An FTP\Connection instance.

command

The command to execute.

Return Values

Returns true if the command was successful (server sent response code: 200); otherwise returns false.

Changelog

Version Description
8.1.0 The ftp parameter expects an FTP\Connection instance now; previously, a resource was expected.

Related Functions

Example of ftp_exec

Show all examples for ftp_exec

PHP Version: