PHP guru needed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • qw12er
    Confirmed User
    • Apr 2004
    • 799

    #1

    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 ...
    I have nothing to advertise ... yet.
  • montythestrange
    Confirmed User
    • Jun 2005
    • 184

    #2
    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
    If you put instant coffee in the microwave, do you go back in time?



    DatingGold Rocks!

    Comment

    • kaktusan
      Confirmed User
      • Mar 2003
      • 334

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


      Superior Blogging Scripts | Porn Blog Space - not just another free blog hosting!

      Comment

      Working...