Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: Navigating From DOCUMENT_ROOT
11-01-2010, 11:02 AM #1
- Join Date
- May 2009
- Thanked 67 Times in 67 Posts
Navigating From DOCUMENT_ROOT
I switched from GoDaddy free hosting to 000webhost free hosting. On GoDaddy I used getenv("DOCUMENT_ROOT)" to get to the base of my site [for my includes]. With 000webs I errored:
Warning: include() [function.include]: open_basedir restriction in effect. File(/usr/local/apache/htdocs/config/index.php) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/a4010105/public_html/include/php_head.php on line 5"Yeah science!"