Apache/PHP not giving me error messages

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View


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?


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.

Re: Apache/PHP not giving me error messages

*** bissatch@yahoo.co.uk wrote/escribió (14 Jun 2005 10:51:19 -0700):
Quoted text here. Click to load it


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

Site Timeline