These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for [Solved] PHP error reporting doesn't work on the new forum.
I currently have a Virtualmin server running... But I would like to be able to view my php errors when I'm quicly editing an existing website. This is a test-code I tried:
You would expect it would show errors, but it doesn't. Does anybody know what to do to show the errors?
isn't there anybody who can help me?
Well, looking at this manual on php.net for display_errors:
I see this info which appears to be relevant:
Note: Although display_errors may be set at runtime (with ini_set()), it won't have any affect if the script has fatal errors. This is because the desired runtime action does not get executed.
That is, it's going to be difficult to get what you're after by setting that option in your PHP code... you're probably better off just making the change in the php.ini file, or by simply looking in the Apache error log ($HOME/logs/error_log). You could just SSH into the server, run "tail -f error_log", and have a running list of any errors and warnings that are going on.
Thanks! I will use SSH and the command you suggested. It's just a new way of working for me...