PHP setting, server-side.
My Web Host [imhosted.com] just installed a new server to replace the one I was now previously on since for some reason the DNS always crapped out on it.
Before they did the upgrade, my PHP
My question for all of you is WHAT did they do wrong so I can tell them to fix it.
Thats the code, this is the error I am getting:
Warning: main(template.php) [function.main]: failed to create stream: No such file or directory in /home/fullmeta/public_html/inc/include.p hp on line 1
Warning: main() [function.main]: Failed opening 'template.php' for inclusion (include_path='') in /home/fullmeta/public_html/inc/include.p hp on line 1
Fatal error: Call to undefined function: myheader() in /home/fullmeta/public_html/tools/html/li nk.php on line 1
Of course, a simple fix for this is to obviously cut and paste the code from
I know its not because I use SGML-style php tags (or at least thats what I keep telling myself).
So... whats the deal? Anyone?
Thanks.
Before they did the upgrade, my PHP
include() worked fine, but now since they reinstalled PHP, I think they forgot to enable (or possibly disable) a flag when it got compiled.My question for all of you is WHAT did they do wrong so I can tell them to fix it.
include.php
<? include "template.php"; ?>
...variables...
template.php
<?
function myHeader($title="",$desc="",$keywords="" ) {
?>
...html and php for template header...
<? } function myFooter() { ?>
...html and php for template footer...
<? } ?>
whatever.php
<? include "path_to_include.php"; myHeader("This is the title"); ?>
...blah blah blah, html, php, page contents...
<? myFooter(); ?>Thats the code, this is the error I am getting:
Warning: main(template.php) [function.main]: failed to create stream: No such file or directory in /home/fullmeta/public_html/inc/include.p
Warning: main() [function.main]: Failed opening 'template.php' for inclusion (include_path='') in /home/fullmeta/public_html/inc/include.p
Fatal error: Call to undefined function: myheader() in /home/fullmeta/public_html/tools/html/li
Of course, a simple fix for this is to obviously cut and paste the code from
template.php to include.php, but I like to keep my template seperate from the rest of my variables.I know its not because I use SGML-style php tags (or at least thats what I keep telling myself).
So... whats the deal? Anyone?
Thanks.
