Include Question
Posted: Mon May 26, 2003 6:51 pm
I am trying to use the Include code and it works if I have:
and header.php in the same directory
It doesnt work if I have:
Or:
I get one of the following error messages:
Thanks
Code: Select all
<?php include("header.php") ?>It doesnt work if I have:
Code: Select all
<?php include("./header.php") ?>Or:
Code: Select all
<?php include("http://www.mysite.com/header.php") ?>I get one of the following error messages:
or:Warning: Failed opening './header.php' for inclusion (include_path='.:/usr/local/lib/php') in /usr/local/apache_1.3.27/htdocs/mysite/subpage/index.php on line 10
What I basically want to do is to have it point to header.php in the root directory. What am I doing wrong?Warning: Failed opening 'http://www.mysite.com/header.php' for inclusion (include_path='.:/usr/local/lib/php') in /usr/local/apache_1.3.27/htdocs/mysite/subpage/index.php on line 10
Thanks