Get Absolute Path

Description: It’s sometimes necessary to figure out the absolute path to a certain file. This snippet will do that.

<?PHP
 
$path = GETCWD();
ECHO �Your Absolute Path is: �;
ECHO $path;
 
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.