PHP ftp_pwd() May 14, 2012 Pramod T P It returns the current directory name Example <?php $ftpId = ftp_connect(‘ftp.phpcodez.com’); $login = ftp_login($ftpId, ‘anonymous’, ‘user@phpcodez.com’); echo ftp_pwd($ftpId) ftp_close($ftpId); ?>