How to Learn Your Sites Absolute Path?

Creating a PHP5 Class Object




Many times you may need to know your sites Absolute Path
There is a php function that helps us to learn the absolute path!




How to Learn Your Sites Absolute Path?

All you need to do is writing this code to a .php file, upload it to your server and call it via browser.
$path = getcwd();
echo "This Is Your Absolute Path: ";
echo $path;

Code piece above will print your sites absolute path!

You may need your sites absolute path and you can get it easily with a piece of php code


absolute path