Created
October 20, 2013 20:14
-
-
Save jserrao/7074728 to your computer and use it in GitHub Desktop.
Easy way to figure out your server's path to the folder you are in. Just call this file in whatever folder and it will spit out the directory string.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$my_path = dirname(__FILE__); | |
echo $my_path; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment