If the page is dynamically generated by the results of some sort of test being performed by the server on the server, why would you EVER be manually changing the status of the server?
Yes, it can be done in PHP. If you are tracking serveral servers, I would set up a database (it's easier to update and sort-in my opinion) with 2 tables: server_info and status. Use conditionals to determine the status of the server. record in the server_info table value from status...Use server_info and status tables to generate Drop Down Menus.
All can be done.