I am trying to include some php files in one of my php page. It errors out saying:
Expand|Select|Wrap|Line Numbers
- Warning: include(/apps1/includes/getINIParamVal.php) [function.include]: failed to open stream: No such file or directory in D:\inetpub\vhosts\aadityatech.in\httpdocs\apps\apps1\index.php on line 9
- Warning: include() [function.include]: Failed opening '/apps1/includes/getINIParamVal.php' for inclusion (include_path='.;./includes;./pear') in D:\inetpub\vhosts\aadityatech.in\httpdocs\apps\apps1\index.php on line 9
I suspect that $_SERVER["DOCUMENT_ROOT"] variable returns the null value. I have included the file with following line:
Expand|Select|Wrap|Line Numbers
- include($_SERVER["DOCUMENT_ROOT"] . "/app1/includes/" . "getINIParamVal.php");
D:\inetpub\vhosts\aadityatech.in\httpdocs\apps
Please help. I would highly appreciate.
Thanks,
Akshay