ftp_pwd

(PHP 3 >= 3.0.13, PHP 4, PHP 5)

ftp_pwd -- 返回当前目录名

描述

string ftp_pwd ( resource ftp_stream )

返回当前目录名称,发生错误则返回 FALSE


add a note add a note User Contributed Notes
mike dot hall at opencube dot co dot uk
01-Jun-2001 12:15
This function doesn't always go to the remote server for the PWD. Once called the PWD is cached, and until PHP has a reason to believe the directory has changed any call to ftp_pwd() will return from the cache, even if the remote server has gone away.