I have noticed when a user has ran out of API request I am seeing:
{"errors":[{"code":53,"message":"Basic authentication is not supported"}]}
Is there a way in PHP I can output this?
I think you'll find that twitter has turned off basic authentication. You will have to use OAuth from now on.