ftp_delete
PHP 4, PHP 5, PHP 7, PHP 8
ftp_delete - Deletes a file on the FTP server
Manual
ftp_delete(
FTP\Connection$ftp,
string$filename ): bool
ftp_delete deletes the file specified by filename from the FTP server.
Parameters
- ftp
-
An FTP\Connection instance.
- filename
-
The file to delete.
Return Values
Returns true on success or false on failure.
Changelog
Version | Description |
8.1.0 | The ftp parameter expects an FTP\Connection instance now; previously, a resource was expected. |