October 20, 201214 yr Hello, Im never getting error messages shown, for example if i dont close bracket it doesnt say error or what the error is it just doesnt run the script any further, I have tried error_reporting(E_ALL); at the top of the php file and it still doesnt show errors Any ideas why errors may not be being shown? Thanks
October 20, 201214 yr You need to make sure display_errors is set to on in your php.ini file or in a .htaccess file if it's permitted. Plenty of examples on how to do this on google
October 20, 201214 yr Hello, Im never getting error messages shown, for example if i dont close bracket it doesnt say error or what the error is it just doesnt run the script any further, I have tried error_reporting(E_ALL); at the top of the php file and it still doesnt show errors Any ideas why errors may not be being shown? Thanks ini_set('display_errors',1); put the at the top of your file after error_reporting Edited October 20, 201214 yr by webdesigner93
October 20, 201214 yr That method is useful except when you have a parse error, since it won't run that code which is why I gave the above two methods and not that one
October 20, 201214 yr That method is useful except when you have a parse error, since it won't run that code which is why I gave the above two methods and not that one mm even if its at the top of the file above the parse error? cause in the pass its ran fine for me when ive had hidden parse errors
October 20, 201214 yr Yes even if it's the first bit of code executed. This has always been the case. Chances are you were already on a system that had display_errors set to on Simple test for you. Put this in a file <?php ini_set('display_errors', 1); class blah { Then run it...then set to 0 and try again... The outcome should be you see errors both times or you see a white screen two times Edited October 20, 201214 yr by Jay Gilford
October 20, 201214 yr Yes even if it's the first bit of code executed. This has always been the case. Chances are you were already on a system that had display_errors set to on Simple test for you. Put this in a file <?php ini_set('display_errors', 1); class blah { Then run it...then set to 0 and try again... The outcome should be you see errors both times or you see a white screen two times mm weird your right but i swore when ive seen a white screen before i put that at the top and it would show the php errors or it might of been mysql errors it would show idk anyways i apologize lol learn something new everyday
Create an account or sign in to comment