Skip to content

Instantly share code, notes, and snippets.

@jserrao
Created October 20, 2013 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jserrao/7074728 to your computer and use it in GitHub Desktop.
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.
<?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