Código PHP:
$func_dir = realpath('..'.DIRECTORY_SEPARATOR.'functions');
$include_path = ini_get('include_path');
if(strpos($include_path, $func_dir) === false)
{
$ps = strchr($include_path, ';')?';':':';
ini_set('include_path', $include_path.$ps.$func_dir);
}
require_once('basic.php');
error_reporting();
require_once('./lib/php/globals.php');
require_once('./lib/php/utils.php');
echo("hi");
para info utilizo MAMP