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:
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.