getting:
Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/celiagodsil.com/httpdocs/index.php on line 17

Warning: Failed opening '/menu.htm' for inclusion (include_path='.:/usr/share/pear') in /home/httpd/vhosts/celiagodsil.com/httpdocs/index.php on line 17

for a simple: <?php include("/menu.htm"); ?>

Safe mode is off.. I'm pretty sure I'm using the right path.. any ideas?

Btw.. I can modify the php.ini file if need be.

    You're specifying an absolute filepath (it starts with / - that's how you tell), and I'm guessing that the absolute file name for what you're after is /home/httpd/vhosts/celiagodsil.com/httpdocs/menu.htm - which is a long way from /menu.htm

    I think you're after a relative file path. Since I'm guessing that menu.htm is in the same directory as index.php, the directory doesn't need to be mentioned at all.

    include('menu.htm');

      A winnar is you!

      I actually had it relative, but I changed it as part of another fix that ended up not working. I forgot to change it back.

      Ya know.. I check over my code/error msgs twice before posting anywhere to avoid looking like a retard... and yet somehow i always manage to look like a retard ;x. Thank you for your help.

        Write a Reply...