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  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Sun Developer Network 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Mobile Linux 
App Generation ROI 
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: 5 stars5 stars5 stars5 stars5 stars / 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:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb 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


       · In this final article of the series, the query processor class gets completed. In...
     

       

    PHP ARTICLES

    - Authentication Scripts for a User Management...
    - Utilizing the Use Keyword for Namespaces in ...
    - Building a User Management Application
    - Working With Different Namespaces in PHP 5
    - User Management Explained: Overview
    - Using Namespaces in PHP 5
    - Database Security: Guarding Against SQL Inje...
    - Building a Modular Exception Class in PHP 5
    - Database and Password Security for Web Appli...
    - Handling MySQL Data Set Failures in PHP 5
    - Building Site Registration for Web Applicati...
    - Intercepting Customized Exceptions in PHP 5
    - Securing Your Web Application Against Attacks
    - Sub Classing Exceptions in PHP 5
    - Authentication for Web Application Security





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
    Stay green...Green IT