Page 1 of 1

unable to see php errors in browser difficult to debug ....

Posted: Fri Dec 05, 2008 6:25 am
by krmkrishnan
thank for ur help i created pdf file .and one more thing is ,php does not show errors for many mistakes in the code.if i leave any braces ...... like that .then how can i debug...
it shows only plain white page..... wat shud i do???
pls reply
thanks

Re: unable to see php errors in browser difficult to debug ....

Posted: Fri Dec 05, 2008 1:21 pm
by jaoudestudios
Check your apache settings. Errors display should be on. On your development machine set it to show all errors including notices.

Re: unable to see php errors in browser difficult to debug ....

Posted: Fri Dec 05, 2008 1:32 pm
by airy
add

Code: Select all

error_reporting(E_ALL);
in you code

Re: unable to see php errors in browser difficult to debug ....

Posted: Fri Dec 05, 2008 2:14 pm
by John Cartwright
airy wrote:add

Code: Select all

error_reporting(E_ALL);
in you code
Unfortunately this does not affect parse errors, as the code can never compile in the first place. It would need to be set in your apache configuration file, or through .htaccess

Re: unable to see php errors in browser difficult to debug ....

Posted: Sat Dec 06, 2008 3:20 pm
by jaoudestudios
Unfortunately this does not affect parse errors, as the code can never compile in the first place.
Jcart has a good point :D