Bah, just noticed 2 other sort of errors. This happened with localhost as well. Sorry guys!
I have Ajam PM Notifications plugin installed, and on my normal mybb pages it shows in the top left of the header like this:
However in the server_bans.php script it shows like this:
As well I have my forums set to show the php and sql information at the bottom of my footer for admins. Like this:
But on the custom script it doesn't show it, instead its just blank like this:
Are you able to reproduce errors like that RateU ?