Shouldn't this condensed piece of code look for my template.inc within %documentroot%/phplib???? Instead when i test it, its looking for template.inc within the same location as "THIS" php page resides! If the code is right, can somone guide me in making my include path work correclty???
Thanks
<?php
error_reporting(E_ALL);
// Set PHPLIB path
$PHPLIB_DIR= $_SERVER['DOCUMENT_ROOT'].'/phplib';
// Add PHPLIB path to PHP's include path
ini_set( 'include_path', ':' . $PHPLIB_DIR . ':' . ini_get('include_path'));
// Include the PHPLIB template class
include('template.inc');
?>