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

PHP ftp_delete() Function

PHP ftp_delete() Function


PHP FTP Reference Manual 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


PHP FTP Reference Manual Complete PHP FTP Reference Manual