Fixed PHP integration and error display