PHP ftp_cdup() Function

PHP ftp_cdup() Function


Define :

In this tutorial we learned about PHP ftp_cdup() Function.This PHP ftp_cdup() Function is inbuilt function in php.This function is used to change the current directory to the parent directory on the FTP server.

Syntax
ftp_cdup(ftp)

Parameters

ftp Required. Specify the FTP connection to use.

Given below example shows the usage of ftp_cdup() function:

Output : Successfully connected to www.webdesigninghouse.com! Couldn't connect as user Connection closed successfully!