How to Get full path of a file or folder


#1

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


#2

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

__FILE__

__DIR__


#3

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