Hello all,

I have been racking my brain for a few days now trying to think of a simple way to do this, looked up examples, but havnt quite found what im looking for.

I am looking for a simple way of seeing if a service is either online or off.


Service = Web Based.


For example,

if www.gixxerpc.com is accessible then return the code: ok
if its not, then return the code: "down"

I was thinking of basically having a text file looking for a .txt file on the said server that said "ok", because if it was down, then it'd return the html code saying it cant be viewed. Which would result in the 'else', and Id know if its down.


However, the reason why id like to go against this, is so I can set it up to ping specific ports/ip's without having to upload a specific file.



Thank you for your help in advance