If you are monitoring ports 80, 21, or 443, and if you have a newer version of PHP, and if your php.ini has allow_url_fopen set to "on", then you can use fopen() to do the checking. Another options is to use CURL, if that has been made available in your PHP installation.
You could also use socket programming. Check out the example code here:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.