Hi
I'm trying to include a php file into another one, and it just won't do it. I do this all the time, and I can't see what's wrong. The file that does the including runs:
PHP Code:
<?php
require_once('wrapper.php') or die("Cannot open wrapper file.");
print_header("home");
?>
<p>The Home Page</p>
<?php
print_footer();
?>
And the error it throws is:
Quote:
Warning: main(1): failed to open stream: No such file or directory in /home/virtual/site**/fst/var/www/html/church/index.php on line 3
Fatal error: main(): Failed opening required '1' (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site**/fst/var/www/html/church/index.php on line 3
|
(** edited becasue I'm paranoid!)
Now, wrapper.php is in the same directory as index.php.
So what gives?
Goodyear