I want to include path to my "var\www\html\leave\functions" folder so that i can access my functions without specifying whole path say include('leave\functions\xyz.php');
instead by giving include('xyz.php');
This is my code which i used in my php file to add this folder path to the include statement.
$path=ini_get('include_path');
$sep=PATH_SEPARATOR;
$docroot=$_SERVER['DOCUMENT_ROOT'];
$dirname=dirname($_SEVER['PHP_SELF']);
ini_set('include_path',$path.$docroot,$dirname,'/leave'.'/functions');