News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
feed this:

Developer Tutorials Blog:
Port Scanning and Service Status Checking in PHP
June 10, 2008 @ 08:46:08

The Developer Tutorials blog has posted a new tutorial covering how to scan ports and checking a remote service's status with PHP.

Having access to the current status of public servers can empower your applications to make decisions and respond to problems automatically. Acknowledging a service is offline can also save endless support emails. In this tutorial, I'll show you how to keep track of your server status by scanning ports on your server with PHP.

They show how to check a remote instance (a socket open with a timeout) and how to run through a list of ports, looping from one to one-thousand and running an fsockopen on each. They make a sample script to show these two combined - a simple page that loops through the common protocols (HTTP, FTP, SSH, etc) and checks to see if the remote machine is running something on that port.

0 comments voice your opinion now!
port scan service status check fsockopen http ftp ssh



AnyExamples.com:
PHP Whois Client Function
September 19, 2007 @ 08:43:00

On the AnyExamples.com website, there's a new little how to on making a whois client in PHP (without just using an exec or similar call to the filesystem).

This article contains PHP implementation of whois client (as a function ae_whois), which may be used to request domain information from specified whois servers.

Their method uses the socket functionality (fsockopen, fwrite, fclose) to make a connection to the remote server for the specified domain's information.

0 comments voice your opinion now!
whois client function socket fsockopen fwrite fclose whois client function socket fsockopen fwrite fclose



Community Events











Don't see your event here?
Let us know!


application book security package PHP5 developer cakephp PEAR release mysql database conference code releases zend example framework zendframework job ajax

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework