Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP ftp_pwd() Function

PHP ftp_pwd() Function


PHP FTP Reference Manual Complete PHP FTP Reference Manual


Definition and Usage

The ftp_pwd() function returns the current directory name of a specified FTP connection.

Syntax

ftp_pwd(ftp_connection)

Parameters Description
ftp_connection Required. Specifies the FTP connection to use.

Example

"; // change directory to images ftp_chdir($conn,"images"); // print current directory echo ftp_pwd($conn); ftp_close($conn); ?>

The code above will output:

/

/images


PHP FTP Reference Manual Complete PHP FTP Reference Manual