hey, i have a newb question about a php environment. i set up a file called html.inc, and i am trying to put multiple functions in it, to use on my index page. however i keep getting an error.
here's what my html.inc looks like:
<?
/*
* Created on Feb 21, 2008
*
*/
function header()
{
?>
<html>
<head>
</head>
<body>
<?
}
function footer()
{
?>
</body>
</html>
<?
}
?>
and this is what i have regarding this file in my index.php:
<?php
require("include/html.inc");
header(1);
footer();
?>
and it gives me this error:
Fatal error: Call to undefined function footer() in C:\Program Files\php_workspace\index.php on line 9
i would like to be able to use more than even just two functions in this file, and perhaps have other include files in the future. do you know what would cause this error? thanks alot!