How can you enable error reporting in PHP?
Submitted by: MuhammadCheck if "display_errors" is equal "on" in the php.ini or declare "ini_set('display_errors', 1)" in your script.
Then, include "error_reporting(E_ALL)" in your code to display all types of error messages during the script execution.
Enabling error messages is very important especially during the debugging process as you can instantly get the exact line that is producing the error and you can see also if the script in general is behaving correctly.
Submitted by: Muhammad
Then, include "error_reporting(E_ALL)" in your code to display all types of error messages during the script execution.
Enabling error messages is very important especially during the debugging process as you can instantly get the exact line that is producing the error and you can see also if the script in general is behaving correctly.
Submitted by: Muhammad
Read Online Sr. PHP Programmer Job Interview Questions And Answers
Top Sr. PHP Programmer Questions
☺ | What are the 3 scope levels available in PHP and how would you define them? |
☺ | What is the purpose of $_PHP_SELF variable in PHP? |
☺ | What is the purpse $_PHP_SELF variable? |
☺ | Can the value of a constant change during the script's execution? |
☺ | What is the purpose of _CLASS_ constant? |
Top Coding/Programming Categories
☺ | Python Interview Questions. |
☺ | OOP Interview Questions. |
☺ | Software engineering Interview Questions. |
☺ | PHP Interview Questions. |
☺ | VBA (Visual Basic for Applications) Interview Questions. |