Hello, I have been trying to learn PHP and have been spending all day trying to solve this "simple" problem. I am using Mac OS X 10.4. I am trying to create a site for myself that gets me out of always having to update main navigation links on every page by learning how to use a server side include.
I created a index page with the following include:
[PHP] <?php include("includes/header.php"); ?> [/PHP]
The header is just a simple nav bar with html text links. This works fine the header is displayed properly on top of the index page.
Within this header I am trying to have another include in a table cell for another set of links. This is what is not working. I have tried this code in a table cell as follows:
[PHP] <?php include("includes/mainLinks.php"); ?> [/PHP]
so basically I have an index page that brings in a header with links and a header that brings in another set of links. So one index file and two includes.
Everything works fine on my computer but when uploaded I get this error:
Warning: main() [function.main]: open_basedir restriction in effect. File(/usr/share/pear//mainLinks.php) is not within the allowed path(s):
Any help would be appreciated
Thanks