PHP
  Home arrow PHP arrow Completing a Query Processor in PHP
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PHP

Completing a Query Processor in PHP
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 11
    2006-05-31


    Table of Contents:
  • Completing a Query Processor in PHP
  • A brief look at the QueryProcessor class
  • Expanding the functionality of the QueryProcessor class: defining the getMXRecords() and checkDNSRecords() methods
  • Scanning TCP ports, running a WHOIS service and more: defining the scanPort() and getWhois() methods
  • Getting the class completed: listing the full source code of the QueryProcessor class

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Completing a Query Processor in PHP
    ( Page 1 of 5 )

    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.

    Introduction

    If you've been reading the previous articles of the series, then you'll probably know that using some networking PHP built-in functions is really an easy process, and admittedly presents some interesting points, particularly if you're interested in swimming deeply in the waters of PHP networking programming.

    With reference to exploring the numerous PHP functions included in its network library, in the second article I aggregated a few handy methods to the "QueryProcessor" class, in order to demonstrate how to use the "exec()" native PHP function for running some popular Windows network monitoring utilities. These include "ipconfig," "netstat" and "ping" programs, as well as the "lookup" command, which can be quite useful for (among other things) retrieving the list of MX records that correspond to a specific Internet host.

    However, as I said right at the end of the previous article, the "QueryProcessor" class isn't complete yet, since I'd like to add to it even more methods, aimed at performing some handy tasks. These include scanning of specific TCP ports, searching and checking for different types of DNS records, and so forth.

    Therefore, 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.

    Ready to start learning how to code the remaining methods of the query processor class? Let's do it together!



     
     
    >>> More PHP Articles          >>> More By Alejandro Gervasio
     

       

    PHP ARTICLES

    - Building Dynamic Queries with Chainable Meth...
    - PHP Encryption and Decryption Methods
    - Building a MySQL Abstraction Class with Meth...
    - Completing a Sample String Processor with Me...
    - Mastering WHILE Loops for PHP and MySQL
    - Method Chaining: Adding More Methods to the ...
    - Method Chaining in PHP 5
    - The Role of Interfaces in Applying the Depen...
    - Dependency Injection: Using a Setter Method ...
    - Using a Model Class with the Dependency Inje...
    - Injecting Objects Using Setter Methods with ...
    - Injecting Objects by Constructor with the De...
    - The Dependency Injection Design Pattern in P...
    - Performing Inferential Statistical Analysis ...
    - Performing Descriptive Statistical Analysis ...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    Stay green...Green IT