ftp_pwd()

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);

?>