Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP ftp_alloc() Function

PHP ftp_alloc() Function


PHP FTP Reference Manual Complete PHP FTP Reference Manual


Definition and Usage

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

Returns TRUE on success, or FALSE on failure.

Syntax

ftp_alloc(ftp_connection,size,return)

Parameters Description
ftp_connection Required. Specifies the FTP connection to use.
size Required. Specifies the number of bytes to allocate.
return Optional. Specifies the variable in which to store the server response.

Tips and Notes

**Note:** Many FTP servers do not support this command.


Example 1


Example 2


PHP FTP Reference Manual Complete PHP FTP Reference Manual