Fatal error: Call to undefined function
Posted: Fri Jul 23, 2010 1:38 pm
ok so to start out this is what i am running
the problem i am having is my index.php is giving me this error
here is the code in question
head is defined in function.php which is included in session.php her is Head()
btw this all works on my ubuntu system at home but i try to up load it and get this error i have tested it and all the other functions from other includes work but not the ones from my function.php
thank you very much for your help...
Code: Select all
Host Server:
PHP Version: 5.2.13
Display Errors: On
Error Level: Not E_ALL
Register Globals: Off
My Ubuntu System
PHP Version: 5.2.10-2ubuntu6.4
Display Errors: On
Error Level: Not E_ALL
Register Globals: Off
Code: Select all
Fatal error: Call to undefined function head() in /home/abrtest/test_html/index.php on line 16
Code: Select all
include("./include/session.php");
$Page = $_GET['Page'];
echo Head("index");Code: Select all
/*---------------------------------------------
function Head returns header and menu information
---------------------------------------------*/
function Head($name){
global $session;
$message .= "<html><head><title>Material Recovery: " . $name . "</title></head><body>";
$message .= "<h1>Logged In</h1>";
$message .= "Welcome <b>$session->username</b><br><br>";
if($session->logged_in){
$message .= "[<a href=\"addaddress.php\">Add Address</a>] ";
$message .= "[<a href=\"userinfo.php?user=$session->username\">My Account</a>] ";
$message .= "[<a href=\"useredit.php\">Edit Account</a>] ";
if($session->isMapUser()){
$message .= "[<a href=\"mapcode.php\">Map</a>] ";
}
if($session->isAdmin()){
$message .= "[<a href=\"../admin/admin.php\">Admin Center</a>] ";
}
if($session->isMapAdmin()){
$message .= "[<a href=\"index.php?Page=admin/review.php\">Review Submissions</a>] ";
}
$message .= "[<a href=\"../process.php\">Logout</a>]";
$message .= "<br /><br />";
return($message);
}
else {
echo "Welcome <b>$session->username</b>, you are not logged in. Click <a href=\"index.php?Page=Login\">Here</a>";
}
}thank you very much for your help...