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

ftp_pwd

(PHP 3>= 3.0.13, PHP 4 )

ftp_pwd -- Returns the current directory name

Description

string ftp_pwd ( resource ftp_stream)

Returns the current directory or FALSE on error.



add a note add a note User Contributed Notes
ftp_pwd
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
Example:
<p>
$fp = ftp_connect("ftp.server.com", 21);<br>
$con = ftp_login($fp, "usr", "pwd");<br>
ftp_chdir($fp, "images");<br>
print ftp_pwd($fp);<br>

<ftp_putftp_quit>
 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: http://php.mirrors.ilisys.com.au/
Last updated: Sat 01 Nov 2003 04:13:36 EST EST