Skip to content

Instantly share code, notes, and snippets.

@boo1ean
Created October 17, 2012 13:58
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 boo1ean/3905645 to your computer and use it in GitHub Desktop.
Save boo1ean/3905645 to your computer and use it in GitHub Desktop.
Extend php include path
<?php
set_include_path(implode(PATH_SEPARATOR, array(
realpath(APPLICATION_PATH . '/../../libraries/'),
realpath(APPLICATION_PATH . '/../../etc/'),
// ...
// Some other stuff
// ...
get_include_path()
)));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment