mixed Net_FTP::pwd (
)
Returns the directory currently selected on the server.
mixed
- path (absolute) as string on success, otherwise PEAR::Error.
The returned PEAR_Error object in case of an error is unspecific. You can ignore the errornumber and errormessage, because only "Could not determine the actual path" will be returned if the operation fails.
This function can not be called statically.
Using pwd()
<?php
echo $test->pwd();
?>