To see my full source code, go here:
http://www.stevemarshall.net/test_objects/create_new_section.php?showsource
I'm trying to require_once("output_fns.php"); where the file includes my functions to create header & footer information around my main content. For some reason, the require code isn't working. This is the function code inside of output_fns.php:
function do_html_header($title)
{
// print the html info before the body content
?>
// Lots of lines of straight HTML code, ending exactly where my body content should start
<?php
// Create section header title
if($title)
do_html_heading($title);
}
I get an error message pointing to the final bracket in this function.
Parse error: parse error in /users/web/blkvipr3/web/test_objects/output_fns.php on line 41
AFTER that error, I get the fatal error:
Fatal error: Call to undefined function: do_html_header() in /users/web/blkvipr3/web/test_objects/create_new_section.php on line 8
The start of the create_new_section.php file is laid out here:
<?php
if( isset($_GET['showsource']) )
highlight_file(__FILE__);
require_once("output_fns.php");
$title = "Create New Section";
do_html_header($title);
?>
Here is why I know it doesn't read the "require" function correctly - if I cut the entire function file & paste it directly into the source file (create_new_section.php), it works perfectly. So somewhere, my require_once("output_fns.php"); command is failing. I've already RTFM to no avail. I'm not entirely sure what I'm doing wrong.
Could this be a problem with my host (again)? This is straight PHP - not a single MySQL reference to be found yet.
To see what the page should look like (sans style), try clicking here. The button doesn't work yet, btw.
I'd appreciate any thoughts on this one!!!