PHP ftp_delete() Function
Complete PHP FTP Reference Manual
Definition and Usage
The ftp_delete() function deletes a file on the FTP server.
Returns TRUE on success, or FALSE with a warning on failure.
Syntax
ftp_delete(ftp_connection,file)
| Parameters | Description |
|---|---|
| ftp_connection | Required. Specifies the FTP connection to use. |
| file | Required. Specifies the path of the file to delete. |
Example
The code above will output:
1
Complete PHP FTP Reference Manual