PDA

View Full Version : weird PHP-prob


Nezzar
February 25th, 2002, 13:53
What does this mean:
Fatal error: Cannot redeclare getdate() in f:\web\phoop\_global.php on line 14

I didn't declare any other function with this name anywhere else or even declared function similar to this one. So where's the problem?
I don't think that it is necessary but here's the code for the function:
function getDate() {
$year = date(Y);
$month = date(m);
$day = date(d);
$date = $year."-".$month."-".$day;
return $date;
};

Nezzar
February 26th, 2002, 19:20
No more help needed. I just renamed the function and it works fine now.