php now handling errors sent from web server