GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   PHP guru needed (https://gfy.com/showthread.php?t=679923)

qw12er 11-22-2006 05:33 PM

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 ...

montythestrange 11-22-2006 05:43 PM

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

kaktusan 11-22-2006 05:45 PM

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