News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

DevShed:
Completing a Query Processor in PHP
May 31, 2006 @ 14:32:28

DevShed finishes off their "Creating a Query Processor" series, a look at working with sockets and related functions, in part three, a focus on extending the class even further and some more in-depth looks "under the hood".

Welcome to the third part of the series "Network Programming in PHP." In three tutorials, this series explains the basics of network programming in PHP, by developing a query processor class in PHP 5, which uses some of the most popular PHP network functions, in order to implement the logic of its methods.

In this last article of the series, I'll add some extra methods to the query processor class, which can be used for performing the networking operations that I mentioned before. Of course, I'll implement within all the methods an easy-to-grasp programming logic, so you shouldn't have any problems understanding how each method works.

He starts with a brief look back to see how far the script's come before charging ahead into even more expansion. He fleshes out the getMXRecords and checkDNSRecords methods before adding in come TCP service functions - scanPort and getWhois. Finally, he wraps it all back into the class and takes one last look at the entire creation (and a simple example that checks the DNS and scans ports for the host "google.com".

0 comments voice your opinion now!
query processor network functionality part3 tutorial query processor network functionality part3 tutorial


blog comments powered by Disqus

Similar Posts

SomeCoders.com: Member Managment System Using PHP, AJAX and script.aculo.us (Part 3)

IBM developerWorks: Intro to MVC Programming with Agavi, Part 1: Open a whole new world with Agavi

DevShed: Introducing the Memento Pattern

Till Klampaeckel's Blog: Iterating over a table (with Zend_Db_Table and Zend_Paginator)

Nessa's Blog: Installing suPHP on cPanel


Community Events





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


release laravel interview install api package library tips zendserver community symfony opinion introduction podcast deployment series update list framework language

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