Fatal error: Cannot redeclare ws_head()
Posted: Tue Oct 01, 2002 11:41 am
Hidee-ho, all! Here's the deal...
I've set up a site search on a corporate website redesign I'm working on. The search I'm using creates the results page by calling two other pages, header.php and footer.php, and sticking the results in between, basically. Everything is working beautifully except for this error I'm getting at the bottom of the results list:
Fatal error: Cannot redeclare ws_head() in /u/web/chec36/development/website/functions/ws_functions.php on line 13
The function it is referring to is a function I use in all of the site's pages to build the logo, navigation, etc. It is being called in the header.php file. It's very simple:
What up with that error? Is this enough info. about the problem? Thanks!
Edit: I've done some more testing, trying include_once, require_once, and checking to make sure that I haven't declared the function more than once. Still getting the same problem.
I've set up a site search on a corporate website redesign I'm working on. The search I'm using creates the results page by calling two other pages, header.php and footer.php, and sticking the results in between, basically. Everything is working beautifully except for this error I'm getting at the bottom of the results list:
Fatal error: Cannot redeclare ws_head() in /u/web/chec36/development/website/functions/ws_functions.php on line 13
The function it is referring to is a function I use in all of the site's pages to build the logo, navigation, etc. It is being called in the header.php file. It's very simple:
Code: Select all
<?php
require("/www729/web/chec36/development/website/functions/ws_functions.php");
$title = "CheckMark Software, Inc. - Accounting and Payroll made easy";
ws_head($title, $title);
ws_middle();
?>Edit: I've done some more testing, trying include_once, require_once, and checking to make sure that I haven't declared the function more than once. Still getting the same problem.