Hi,
I am trying to include some php files in one of my php page. It errors out saying:
I checked twice, and found that my getINIParamVal. php in D:\inetpub\vhos ts\aadityatech. in\httpdocs\app s\apps1\include s.
I suspect that $_SERVER["DOCUMENT_R OOT"] variable returns the null value. I have included the file with following line:
My document root in apache is:
D:\inetpub\vhos ts\aadityatech. in\httpdocs\app s
Please help. I would highly appreciate.
Thanks,
Akshay
I am trying to include some php files in one of my php page. It errors out saying:
Code:
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_R OOT"] variable returns the null value. I have included the file with following line:
Code:
include($_SERVER["DOCUMENT_ROOT"] . "/app1/includes/" . "getINIParamVal.php");
D:\inetpub\vhos ts\aadityatech. in\httpdocs\app s
Please help. I would highly appreciate.
Thanks,
Akshay
Comment