downloads | documentation | faq | getting help | mailing lists | reporting bugs | sites | links | my 
search for in the  
view the version of this page
Last updated: Thu, 21 Aug 2003


(PHP 3>= 3.0.13, PHP 4 )

ftp_pwd -- Returns the current directory name


string ftp_pwd ( resource ftp_stream)

Returns the current directory or FALSE on error.

add a note add a note User Contributed Notes
mike dot hall at opencube dot co dot uk
31-May-2001 11: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.
marcel at mail dot ru
13-Apr-2000 05:05
$fp = ftp_connect("", 21);<br>
$con = ftp_login($fp, "usr", "pwd");<br>
ftp_chdir($fp, "images");<br>
print ftp_pwd($fp);<br>

 Last updated: Thu, 21 Aug 2003
show source | credits | sitemap | mirror sites 
Copyright © 2001-2003 The PHP Group
All rights reserved.
This mirror generously provided by:
Last updated: Sat 01 Nov 2003 04:13:36 EST EST