[SOLVED] function errors
Posted: Wed Jun 16, 2004 10:40 pm
Ok, i have a page called functions.inc.php which contains the following code.
On a seperate page i call the functoin by doing this
and i get the following errors
Fatal error: Cannot redeclare user_check() (previously declared in /home/pinehead/www/functions.inc.php:5) in /home/pinehead/www/functions.inc.php on line 4
Any ideas? Thank you for your time.
Anthony
Code: Select all
function user_check() {
session_start();
header("Cache-control: private");
if(isset($_SESSION['name'])) { header("Location: http://www.kcc.com/loginbox.php"); exit; }
}Code: Select all
user_check();Fatal error: Cannot redeclare user_check() (previously declared in /home/pinehead/www/functions.inc.php:5) in /home/pinehead/www/functions.inc.php on line 4
Any ideas? Thank you for your time.
Anthony