Need Help - Enable Debugging?

Discussion in 'PHP' started by MusicLemon, May 8, 2008.

  1. #1
    Hey --

    for some reason the errors for my PHP won't show and it's driving me nuts! I'll never know what's wrong!

    Any clue how I can turn them on? =[
     
    MusicLemon, May 8, 2008 IP
  2. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #2
    Is this on localhost or a paid server?

    It is just an ini file change but on shared hosting you may or may not be able to effect the change.
     
    Colbyt, May 8, 2008 IP
  3. CPURules

    CPURules Peon

    Messages:
    67
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Try adding this directly at the top of your page:

    
    <?php
    error_reporting(E_ALL);
    ?>
    
    PHP:
    You might not want to use E_ALL, but that will show you all errors and warnings.
     
    CPURules, May 8, 2008 IP
  4. scutari

    scutari Peon

    Messages:
    431
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I think that is not possible, are you are sure you linked correctly your pages?
     
    scutari, May 8, 2008 IP