PHP ftp_alloc() Function

PHP FTP Reference : Allocate space for a file and upload the file to the FTP server

Definition and Usage

The ftp_alloc() function allocates space for a file to be uploaded to the FTP server.

Note: Many FTP servers do not support this command!

Syntax

ftp_alloc(ftp_conn, filesize, result);

Parameter Values

Parameter Description
ftp_conn Required. Specifies the FTP connection to use
filesize Required. Specifies the number of bytes to allocate
result Optional. Specifies a variable to store the server response in

Technical Details

Return Value: TRUE on success, FALSE on failure
PHP Version: 5+

❮ PHP FTP Reference