![]() |
PHP guru needed
What's the code I need to put in the top of my page I want to debug to see the errors ?
<? ini_set("error_reporting", E_YOUR_ERROR_LEVEL); echo ini_get("error_reporting"); ?> and error_reporting(E_ALL); error_reporting(E_PARSE); doesn't works ... |
error_reporting(E_ALL); will work However, that will only show you parsing errors or using variables that are not set, and things like that. It will not show you logic errors -- that you need to debug yourself, usually by outputting variables in your script. I recommend using http://www.php.net/var_dump
|
try this:
ini_set('display_errors',E_ALL); ini_set('display_startup_errors',1); and make sure somewhere down the line in your script you are not turning off the debugging.. |
All times are GMT -7. The time now is 08:51 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123