I have two boxes, a Fedora Core 5 box with PHP and Apache built from RPMs (development) and an FC5 box with a minimal install and apache and php built from source (production).
I have written a series of PHP scripts on the development box and the site works fine. I copy the files over to the development box and I get
Fatal error: Cannot redeclare html_header() (previously declared in /usr/local/apache2/htdocs/includes.php:3) in /usr/local/apache2/htdocs/includes.php on line 21
when I go to index.php. I can't figure out what's missing or incorrectly configured on the production box that would break it. My site does use sessions but it breaks like this
<?php
include_once ("includes.php");
include_once('class.breadcrumb.inc.php');
//include("session.php");
html_header ("Welcome Page");
html_header just writes out the HTML for the top of the page and inserts the string between the <title> tags.
Can anyone suggest what I should be looking at to get this fixed?
Thanks
Steve
PS. PHP on the production has to be build from source to include OCI8 in case you were wondering. On the development box I just spoof it with MySQL.