[b]index.php
<html>
<?php include(“functions.php”);
page_header(); ?>
<body>
<?php echo “Hello World”; ?>
</body>
</html>
[b]functions.php
<?php
$web_title = “Test PHP Page”;
function page_header() {
global $web_title;
echo “<head>”;
echo “<title>$web_title</title>”;
echo “</head>”;
}
function page_footer() {
?>
echo “</body>”;
echo “</html>”;
}
?>
[i]I just want to know why my index.php page currently states:
Warning: main(functions.php): failed to open stream: No such file or directory in /home/mydomain/public_html/test/index.php on line 3
Warning: main(): Failed opening ‘functions.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/mydomain/public_html/test/index.php on line 3
Fatal error: Call to undefined function: page_header() in /home/mydomain/public_html/test/index.php on line 4