Apache/PHP not giving me error messages

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bissatch@yahoo.co.uk

    #1

    Apache/PHP not giving me error messages

    Hi,

    I have just recently installed Apache2 and PHP5 on my computer.
    Normally when I make a syntax mistake on my webspace it gives me an
    error message on the .php page when i load it and the line the error is
    on. When i load a page on my own computer through http://localhost it
    just stops outputing the code on the page where the error is and leaves
    the rest blank.

    Do i need to configure Apache or PHP to display errors? If so, how?
    Cheers

    Burnsy

  • Alvaro G Vicario

    #2
    Re: Apache/PHP not giving me error messages

    *** bissatch@yahoo. co.uk wrote/escribió (14 Jun 2005 10:51:19 -0700):[color=blue]
    > Do i need to configure Apache or PHP to display errors?[/color]

    PHP
    [color=blue]
    > If so, how?[/color]

    Edit php.ini and change error_reporting accordingly.


    --
    -- Álvaro G. Vicario - Burgos, Spain
    -- http://bits.demogracia.com - Mi sitio sobre programación web
    -- Don't e-mail me your questions, post them to the group
    --

    Comment

    • Nicholas Wright

      #3
      Re: Apache/PHP not giving me error messages

      An easy fix for this is to stick <?php error_reporting (E_ALL); ?> at
      the top of your program.

      For a more long term fix you need to change your error_reporting
      settings in php.ini.

      Hope that helps.

      Comment

      Working...