Struggling to debug php? Enable all errors

If you are having a problem debugging any php code a good thing to do is make sure all errors are showing. Simply use the following code at the beginning of your script:

error_reporting(E_ALL);You may find that the open source code you are using or the website created by somebody else is hiding too many errors for you to work out what is going on.

Keep in mind you will also see a lot of warnings which are not always important (depending on your personal opinion) - if this is the case make sure you remove the above line after you are done.

Are you a Developer, Designer or Copy Writer? Or Looking For One?

Click here to see 100s of jobs updated every day that you can complete to earn good money. Also find that programmer, designer or copy writer you have been looking for - advertise and get the best guy for your job - click here to find out more

Leave a Reply

Make $100,000/Month - Every Month!

It Works! We Make Our Customers Millionaires! Act now and get $600 bonus and a Free Money Making Website! - click to get started