For MYSQL and many other applications, it’s necessary sometimes to figure out the absolute path to a certain file.
Here’s how to find absolute path using a simple PHP script:
$path = getcwd();
echo “Your Absolute Path is: “;
Just create the file ‘absolute.php’ in the directory that you wish to find the absolute path for, and copy-paste the above code to the file, save it and run it.
Tags: 2 Comments