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
unable to see php errors in browser difficult to debug ....
Moderator: General Moderators
-
krmkrishnan
- Forum Newbie
- Posts: 7
- Joined: Thu Dec 04, 2008 11:36 pm
- jaoudestudios
- DevNet Resident
- Posts: 1483
- Joined: Wed Jun 18, 2008 8:32 am
- Location: Surrey
Re: unable to see php errors in browser difficult to debug ....
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 ....
add
in you code
Code: Select all
error_reporting(E_ALL);- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: unable to see php errors in browser difficult to debug ....
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 .htaccessairy wrote:addin you codeCode: Select all
error_reporting(E_ALL);
- jaoudestudios
- DevNet Resident
- Posts: 1483
- Joined: Wed Jun 18, 2008 8:32 am
- Location: Surrey
Re: unable to see php errors in browser difficult to debug ....
Jcart has a good pointUnfortunately this does not affect parse errors, as the code can never compile in the first place.