ftp_rmdir
PHP 4, PHP 5, PHP 7, PHP 8
ftp_rmdir - Removes a directory
Manual
ftp_rmdir(
FTP\Connection$ftp,
string$directory ): bool
Removes the specified directory on the FTP server.
Parameters
- ftp
-
An FTP\Connection instance.
- directory
-
The directory to delete. This must be either an absolute or relative path to an empty directory.
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. |