Hi.
I'm new to the world of Php. I am going to be converting my website
over the next year to be a Php site. Hopefully this is going to
coincide with myself learning the basics of Php.
I intend to get hold of a copy of Dreamweaver soon, and also get a
book on it as well.
Anyway, my first attempt at Php has given me an error. What I am
trying to do is to put all the header info for my webpages into an
include file, so I can just bring the same include file up for the
same header info for each page.
My first page starts:
<?php
include ("/header.inc");
?>
When viewing the page though I get the following error:
Warning: main(.inc): failed to open stream: No such file or directory
in /home/public_html/index.php on line 3
Warning: main(): Failed opening '.inc' for inclusion
(include_path=' .:/usr/lib/php:/usr/local/lib/php') in
/home/public_html/index.php on line 3
You don't have any idea what this error is do you?
Thanks
John
I'm new to the world of Php. I am going to be converting my website
over the next year to be a Php site. Hopefully this is going to
coincide with myself learning the basics of Php.
I intend to get hold of a copy of Dreamweaver soon, and also get a
book on it as well.
Anyway, my first attempt at Php has given me an error. What I am
trying to do is to put all the header info for my webpages into an
include file, so I can just bring the same include file up for the
same header info for each page.
My first page starts:
<?php
include ("/header.inc");
?>
When viewing the page though I get the following error:
Warning: main(.inc): failed to open stream: No such file or directory
in /home/public_html/index.php on line 3
Warning: main(): Failed opening '.inc' for inclusion
(include_path=' .:/usr/lib/php:/usr/local/lib/php') in
/home/public_html/index.php on line 3
You don't have any idea what this error is do you?
Thanks
John
Comment