Revision: 53977
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at December 5, 2011 06:10 by tomcottrill
Initial Code
<?php define('APPLICATION_PATH', realpath("../")); $paths = array( APPLICATION_PATH, APPLICATION_PATH . "/classes", APPLICATION_PATH . "/functions", get_include_path() ); set_include_path(implode(PATH_SEPARATOR, $paths)); require_once ('functions.php'); ?>
Initial URL
Initial Description
This snippet shows a dynamic way to enable extra default include paths.
Initial Title
Defining Extra Include Paths
Initial Tags
php
Initial Language
PHP