Define :
In this tutorial we have to learn about PHP ftp_connect() Function.The ftp_connect() Function is inbuilt function in php.This function is used to deletes the file specified by filename from the specified FTP server. The function returns true on success or false on failure.
ftp_delete(ftp, filename)
Parameters
ftp |
Required. Specify the FTP connection to use. |
filename |
Required. Specify the file to delete. |
Given below example to shows the usage of PHP ftp_delete() Function :
Note: Many FTP servers do not support this command!
Output :
Successfully connected to www.webdesigninghouse.com!
Couldn't connect as user
Connection closed successfully!