LAMP How To – Open Source At Work

Only Passion Matters

Entries for June, 2006

Form Checking – Verifying Name Using PHP Ereg

One important use of Regular Expressions (Regex) is to verify fields submitted via a form. In this article, we attempt to write an expression that is able to verify the user’s first name, middle name, last name or just names in general.
The expression should allow names such as “Mary”, “Mr. James Smith” and “Mrs O’Shea” [...]

Introduction to Regular Expressions In PHP

In Linux and Unix, the syntax that is commonly used by many applications for specifying text patterns is known as regular expressions or in short form – regex. Regex is a very powerful technique to describe patterns and many programs use them to describe sequences of characters to be matched. Search programs such as ‘grep’ [...]

Website Ranking Using Google API and Pear:SOAP

Google implemented a search API in 2002 for web developers to do Google search within their own website. By using SOAP (Simple Object Access Protocol) procedures, the API allows the search and results retrieval to run in the background.
I have implemented a google search function in this website using PEAR SOAP.
/google_api_search.php
download the source code – [...]