ftp_pwd

PHP 4, PHP 5, PHP 7, PHP 8
ftp_pwd - Returns the current directory name
Manual
Code Examples

ftp_pwd( FTP\Connection$ftp ): string|false

Parameters

ftp

An FTP\Connection instance.

Return Values

Returns the current directory name or false on error.

Changelog

Version Description
8.1.0 The ftp parameter expects an FTP\Connection instance now; previously, a resource was expected.

Related Functions

Example of ftp_pwd

Show all examples for ftp_pwd

PHP Version: