<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Thu, 23 May 2013 16:06:41 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[DeveloperTutorials.com: Port Scanning and Service Status Checking in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/12297</guid>
      <link>http://www.phpdeveloper.org/news/12297</link>
      <description><![CDATA[<p>
On the DeveloperTutorials.com site today there's <a href="http://www.developertutorials.com/tutorials/php/port-scanning-and-service-status-checking-in-php-8-06-06/page1.html">a new tutorial</a> showing the creation of a port scanner with PHP - a tool that, given some of the familiar ports that services (like web or email servers) run on, can check to see if they're responding.
</p>
<blockquote>
While building web applications, it's often important to keep an eye on the other services running on your server. 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.
</blockquote>
<p>
Their example makes a socket connection to the remote port to see if there's a valid hookup. The wrap this inside a loop for ports 1 through 1000 to see what ports are open and responding on your local machine (doing this on a remote machine is just asking for trouble).
</p>
<p>
Their full example defines some of the common ports in an array and loops to check on their status. It sets out a base you can build on top of with things like their suggestions - logging scan results, repoting downtime and running a service-specific task.
</p>]]></description>
      <pubDate>Wed, 08 Apr 2009 08:49:21 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Developer Tutorials Blog: Port Scanning and Service Status Checking in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/10376</guid>
      <link>http://www.phpdeveloper.org/news/10376</link>
      <description><![CDATA[<p>
The Developer Tutorials blog has <a href="http://www.developertutorials.com/tutorials/php/port-scanning-and-service-status-checking-in-php-8-06-06/page1.html">posted a new tutorial</a> covering how to scan ports and checking a remote service's status with PHP.
</p>
<blockquote>
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.
</blockquote>
<p>
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.
</p>]]></description>
      <pubDate>Tue, 10 Jun 2008 08:46:08 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[AnyExamples.com: PHP Whois Client Function]]></title>
      <guid>http://www.phpdeveloper.org/news/8683</guid>
      <link>http://www.phpdeveloper.org/news/8683</link>
      <description><![CDATA[<p>
On the AnyExamples.com website, there's a <a href="http://www.anyexample.com/programming/php/php_whois_client_function.xml">new little how to</a> on making a whois client in PHP (without just using an exec or similar call to the filesystem).
</p>
<blockquote>
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.
</blockquote>
<p>
Their <a href="http://www.anyexample.com/programming/php/php_whois_client_function.xml">method</a> uses the socket functionality (fsockopen, fwrite, fclose) to make a connection to the remote server for the specified domain's information.
</p>]]></description>
      <pubDate>Wed, 19 Sep 2007 08:43:00 -0500</pubDate>
    </item>
  </channel>
</rss>
