PHP ftp_connect() FunctionThe ftp_connect() function opens an FTP connection to a server. When the connection is open, you can run FTP functions against the server. This function was introduced in PHP 4. Syntax:
ReturnsThe ftp_connect function returns a FTP connection on success otherwise an error. Example 1The example tries to connect to an FTP server. If the connection fails, the die() function terminates the script. Example 2Output: If connected it gives successful connected If not connected it gives not connected Example 3The above example tries to connect to an ftp server. If the connection don't success the control goes to die function. Next TopicPHP FTP |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India