Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

16
  • 11
    Also note that you can use these 3 lines, and then include('fileImWorkingOn.php');. Then you can catch the syntax errors too! Commented May 8, 2015 at 18:11
  • 18
    While I'm no SysOps, I think more people have an .htaccess file than php.ini, and these would both come before parsing, right? php_flag display_errors 1 for .htaccess Commented Jul 9, 2015 at 21:58
  • 1
    So now that the errors get logged, where do they go? I went to /var/log/apache2 and it shows all the logs, but there is no information regarding the program I recently ran. I only get information about system restarts once every morning. Commented May 17, 2016 at 15:14
  • 3
    E_ALL isn't sufficient to display all errors in PHP 5.3. "E_STRICT became part of E_ALL in 5.4.0" - PHP Manual You need E_ALL | E_STRICT or -1 in that version. Commented Sep 14, 2016 at 4:12
  • 2
    Everyone has a PHP.ini, Few have a .htaccess file ... The ability to edit their PHP.ini file is another thing.. And most public servers allow for a custom php.ini file to be used.. Commented Nov 10, 2016 at 5:47