PHP ftp_alloc() Function
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
Complete PHP FTP Reference Manual