Question:

Php error debugging code set in phpconfig or each php page?

by  |  earlier

0 LIKES UnLike

what code do you use to debug your code or print out errors?

 Tags:

   Report

2 ANSWERS


  1. you can use var_dump() on a per page basis...

    otherwise just upload an .htaccess file to the directory you want to view errors on

    http://support.easystreet.com/hosting/un...


  2. I typically use the following two lines in my PHP code when I am developing new sites:

    ini_set("display_errors","2");

    ERROR_REPORTING(E_ALL);

    If you're trying to narrow down a specific problem, var_dump() will be your best friend.

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.