Hi all,
I'm using a php require to include another file which has worked fine, until I checked my site yesterday. Here's the code I've been using.
Standard stuff. What's weird is that I'm using the same code on all pages but only get the following warning on some pages and not others.
Warning appears on this page http://www.krazybov.com/001/
No warning on this page http://www.krazybov.com/contact/
A solution that doesn't involve me going into every page to change the php require would be much appreciated.
Got any bright ideas? I'm stumped!
I'm using a php require to include another file which has worked fine, until I checked my site yesterday. Here's the code I've been using.
Code:
<?php require $_SERVER["DOCUMENT_ROOT"] . "/includes/top.php"; ?>
Code:
Warning: require() [[URL="http://www.krazybov.com/advertise/function.require"]function.require[/URL]]: open_basedir restriction in effect. File(/usr/local/apache/htdocs/includes/top.php) is not within the allowed path(s): (/home/:/tmp) in /home/massimo/public_html/krazybov.com/advertise/index.php on line 1
Warning: require(/usr/local/apache/htdocs/includes/top.php) [[URL="http://www.krazybov.com/advertise/function.require"]function.require[/URL]]: failed to open stream: Operation not permitted in /home/massimo/public_html/krazybov.com/advertise/index.php on line 1
Fatal error: require() [[URL="http://www.krazybov.com/advertise/function.require"]function.require[/URL]]: Failed opening required '/usr/local/apache/htdocs/includes/top.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/massimo/public_html/krazybov.com/advertise/index.php on line 1
No warning on this page http://www.krazybov.com/contact/
A solution that doesn't involve me going into every page to change the php require would be much appreciated.
Got any bright ideas? I'm stumped!