ann86 Posted June 3, 2008 Share Posted June 3, 2008 Yesterday my code was working fine and today when I went to my site I have this error. Fatal error: Cannot redeclare date_format() I changed it to date_frmt() and the error goes away but then it tells me that the cookies are enabled. Can anyone please tell me what's going on? Link to comment https://forums.phpfreaks.com/topic/108566-date_format-error/ Share on other sites More sharing options...
discomatt Posted June 3, 2008 Share Posted June 3, 2008 Well, date_format is an existing function in PHP... so something like function date_format ( $arg ) will produce a fatal error Link to comment https://forums.phpfreaks.com/topic/108566-date_format-error/#findComment-556686 Share on other sites More sharing options...
PFMaBiSmAd Posted June 3, 2008 Share Posted June 3, 2008 Your host probably updated php versions (date_format was added in php5.1.0). As to your second problem, you would need to provide more information, like the exact error message and the code that causes the error for anyone in a Forum to be able to tell you what it means. Link to comment https://forums.phpfreaks.com/topic/108566-date_format-error/#findComment-556975 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.