I'm going mad with an include_once problem here. I'm well aware that you should use include_once instead of include. I have a very large codebase that is very interconnected so I made a point of always using include_once. This afternoon, it started freaking out though. Its basically like every single include_once is acting like an include. I'm getting errors about redeclaring classes even though I always use include_once. Every single class that is included more than once, even though I'm using include_once, is causing a fatal 'Cannot redeclare class' error. Has anyone ever seen this?
I'm almost certain its a server problem. This same codebase is running on multiple servers. One of my many attempted solutions was to copy the codebase from another server that was running perfectly. This did not help at all. Are there any server settings that could cause something like this?
I'm desperate folks...
Thanks.
Include_once not working
Moderator: General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
-
php_wiz_kid
- Forum Contributor
- Posts: 181
- Joined: Tue Jun 24, 2003 7:33 pm