eric1235711 Posted January 3, 2007 Share Posted January 3, 2007 Hello every oneI got a weird problem...my script shows an error saying that can't redeclare __autoload function...but I is declared only once in all the scripts... the most weird is that i just have to reload it to the error disapear...do you know what it can be?maybe mixing php4 with php5?thanks in advance... and happy new year to you. Link to comment https://forums.phpfreaks.com/topic/32751-__autoload-problem/ Share on other sites More sharing options...
trq Posted January 3, 2007 Share Posted January 3, 2007 Well the __autoload function isn't going to work with php4 so Im not sure. Are you using include_once to include it in all scripts? Or just include? Link to comment https://forums.phpfreaks.com/topic/32751-__autoload-problem/#findComment-152456 Share on other sites More sharing options...
eric1235711 Posted January 4, 2007 Author Share Posted January 4, 2007 I know that it works only in php5...the problem is that if it´s included mode than once, thousands of functions would give the redeclarations problem.... Link to comment https://forums.phpfreaks.com/topic/32751-__autoload-problem/#findComment-152844 Share on other sites More sharing options...
trq Posted January 4, 2007 Share Posted January 4, 2007 Not if you use include_once() instead of include(). Link to comment https://forums.phpfreaks.com/topic/32751-__autoload-problem/#findComment-152868 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.