![]() | |||||||
Server Status Script Here is a simple server status script which I have made, it should work with most hosting accounts that have PHP enabled. If not you may need to change the servers in the services array, for example on shared hosting the HTTP server address may need to be changed to your websites URL. A live demo is available here: http://lee.conceptsublime.com/service_status.php You can add/remove services by adding or removing them to/from the $services array. Any feedback is appreciated! To install just copy the code below into a php file, and run the php file. Advanced users may want to adjust the services it checks, depending on what you have installed on your server. PHP Code: Thanks, Lee :) |
Works great! Thank you :) Rep added |
Nice simple bit of code, that will help some people. Rep++ Infact, its given me an idea for a program to make... |
Thanks everyone, seems like ti works then, it is actually a part of a larger project that I am working, although I thought i would release this as it is probably useful alone |
Just a note: I 'think' it's working correctly, because the report I get says "Online" for all of the lines. But there is no way for me to know whether this report is correct. Just assuming it is! |
Oh, thanks for that Gene, I'll have a fiddle with it now to test it, On my PC I don't have HTTPS, SMTP or POP3 and it doesn't recognise any, but i'll fiddle around disabling stuff to make sure it recognises everything, hopefully it will though. |
Just a recommendation PHP Code: Can be PHP Code: |
Updated Version Hi, Here's a slightly updated version of the script I posted before, I've made it more customisable so that you can format the output however you want. PHP Code: This returns the services as an array, when you use the function CheckAll(). An example usage is PHP Code: It returns 1/true if the service is online, and 0/false if it isn't Thanks, Lee :) |
Thanks Lee. Really helpful script for us. Rep added. :) |
Thanks Lee, i can use this one! |
| All times are GMT -7. The time now is 02:01 PM. |
Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0