Skip to content

Instantly share code, notes, and snippets.

@anytizer
Created January 10, 2014 14:13
Show Gist options
  • Save anytizer/8353056 to your computer and use it in GitHub Desktop.
Save anytizer/8353056 to your computer and use it in GitHub Desktop.
Accessing PHP configurations in different ways
Absolute path
'/home/USER/public_html/config.php'
Dynamic path
dirname(__FILE__).'/config.php'
Configured path
$path.'/config.php'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment