Hello,
I mus say that hte help that I have been able to get towards my previous questions has been quick and of excellent quality.
My latest question/problem is in relation to functions that reside within my require/include files.
Test.php is below
<?php
require("./SSI/Common.php"); // Header and footer functions.
html_header(); //Load the html header information.
?>
Common.php is below
<?php
// Test to see if this file has been included already.
//
//
// This function has been designed to output the header of an html document.
//
// $title has been designed to be the title of the page that is being created
// and as such is set within the calling php application.
//
//
function html_header($title)
{
echo "";
echo "<head>";
echo "<title>$title</title>";
echo "</head>";
echo "<body>";
}
// This function has been designed to output the footer of an html document.
//
//
function html_footer()
{
echo "</body>";
echo "";
}
?>
When the test.php is loaded via my web browser the following error is displayed?
Fatal error: Call to undefined function: html_header() in /var/www/html/form.php on line 5
Can anyone explain to me why I am receiving this error? Is this an ID10T error? Are my functions legal? Are the calls to them legal? Can I maintain functions within the require/include statements?
As always thank you in advance for your help
Shaun