How to Get full path of a file or folder

How can I get the full path of the folder in PHP?
Is there any method like application.getRealPath() which is used in JSP?

http://php.net/manual/en/function.realpath.php

__FILE__

__DIR__

http://php.net/manual/en/function.realpath.php

Sponsor our Newsletter | Privacy Policy | Terms of Service