PHP includes not working

Discussion in 'HTML / PHP / JavaScript / CSS' started by jstanley, Jul 25, 2006.

  1. I'm using includes in my PHP, but get the following error on the browser:

    PHP Warning: main(/commonBegin.php): failed to open stream: No such
    file or directory in E:\web\axisreporti\htdocs\application.php on line
    9 PHP Warning: main(): Failed opening '/commonBegin.php' for inclusion
    (include_path='.;c:\php4\pear') in
    E:\web\axisreporti\htdocs\application.php on line 9

    the code I'm using is:

    include $_SERVER['DOCUMENT_ROOT'].('/include/commonBegin.php');

    anyone have any ideas what could be wrong? I thought that the PHP.ini file would need to be modified to the directory in which my site resides, but the tech support team didn't think so.

    thanks
     
  2. figured it out. just made include relative.

    thanks
     

Share This Page