I changed host this weekend. With my last host on Win2k and IIS this code worked fine:
<?php
include "include/open.php";
include "include/header.php";
include "include/navs.php";
include "blog/blogger.php";
include "include/footer.php";
include "include/close.php";
?>
but now on my new host with Linux and Apache it gives me errors like:
Warning: open_basedir restriction in effect. File is in wrong directory in /usr/local/psa/home/vhosts/travisbarden.com/httpdocs/blog/blogger.php on line 2
Warning: Failed opening '../include/open.php' for inclusion (include_path='.:/usr/local/psa/apache/lib/php') in /usr/local/psa/home/vhosts/travisbarden.com/httpdocs/blog/blogger.php on line 2
Warning: open_basedir restriction in effect. File is in wrong directory in /usr/local/psa/home/vhosts/travisbarden.com/httpdocs/blog/blogger.php on line 3
Warning: Failed opening '../include/header.php' for inclusion (include_path='.:/usr/local/psa/apache/lib/php') in /usr/local/psa/home/vhosts/travisbarden.com/httpdocs/blog/blogger.php on line 3 ...
I have tried changing the code to use my full path like below but I still receive the above errors:
<?php
include "/usr/local/psa/home/vhosts/mysite.com/httpdocs/include/open.php";
include "/usr/local/psa/home/vhosts/mysite.com/httpdocs/include/header.php";
...
?>
Any ideas?