Hi there, I have taken code from a webserve that I use to develop my site and placed it on an XP box with Apache and PHP. Both use version 1.3.37 Apache and 4.4.4 PHP. However... my classes and extended classes are working on my public webserver but not on my local machine. I think it's to do with the way PHP is installed. Can someone please help me identify if settings can affect the classes? The error received is: Fatal error: Class events: Cannot inherit from undefined class CLASSNAME in c:\inetpub\wwwroot\websites\includes\classes\events.php on line 3 followed by... Fatal error: Cannot instantiate non-existent class: events in c:\inetpub\wwwroot\websites\localband\index.php on line 9 I don't see why it wouldn't work on my localhost server as it's the same setup as the online server. Any ideas you may have would be great! Thanks! :>|
Although you can write classes in PHP 4.x, to get full use of classes and all things OO, upgrade to PHP 5.x+. If that's not the issue, post some of your class code so myself and others can see whats going on.
If they're both running PHP version 4.4.4, I imagine the version isn't the problem. What's line 3 of events.php? class events extends CLASSNAME { ?