How to enable error reporting in PHP?

I recently moved my site from a shared server to my own server. Now that I have a PHP error, I get a 500 Internal Server Error. On my old host, I would get something like "Fatal error: Expecting;". How to enable this?

+62
php error-handling
Jul 04 '11 at 19:44
source share

No one has answered this question yet.

See similar questions:

538
How can I get useful error messages in PHP?
four
how to find out what the error is when Firefox says: "The image cannot be displayed because it contains errors"
four
php array_unique does not work as expected
four
Codeigniter $ query-> list_fields () returns nothing on LINUX with the same php code
four
PHP public function behaves like static
four
Echo issue with while / if / else
3
Why does GlobIterator produce an excellent result than the glob function?
2
Getting fatal errors in Nginx to display in the browser
2
no error messages no matter what i try
2
Download missing file extension

or similar:

4270
Link. What does this symbol mean in PHP?
2776
How can I prevent SQL injection in PHP?
2414
Why shouldn't I use mysql_ * functions in PHP?
2335
Removing an element from an array in PHP
2024
How do you parse and process HTML / XML in PHP?
1906
How does PHP foreach work?
1624
How do I get PHP errors?
1475
Convert HTML + CSS to PDF using PHP?
1065
Link. What does this error mean in PHP?
944
What are Long-Polling, Websockets, Server-Sent Events (SSE) and Comet?



All Articles