Home arrow PHP arrow Building a Complete Web Searching Class with Yahoo Web Services and PHP 5

Building a Complete Web Searching Class with Yahoo Web Services and PHP 5

Welcome to the final part of the series “Using Yahoo! Web Services with PHP 5.” As the title claims, this series walks you through the basic concepts surrounding the correct utilization of the most relevant web search services provided by Yahoo! and puts the corresponding theory into practice by utilizing both procedural and object-oriented approaches.

TABLE OF CONTENTS:
  1. Building a Complete Web Searching Class with Yahoo Web Services and PHP 5
  2. Defining an image searching class in PHP 5
  3. Using Inheritance to work with different Yahoo! Web Services
  4. Consuming specific Yahoo! Web Search Services
By: Alejandro Gervasio
Rating: starstarstarstarstar / 3
February 20, 2008

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement

As you possibly know, Yahoo! has recently released a thorough set of Web Service APIs that can be easily consumed by using some popular server-side programming languages, including my favorite one, PHP. If you're interested in learning how to implement these useful services directly from your own PHP 5 applications, then look no further, because you've come to the right place.

Provided that you already went through all of the previous articles of the series, I could say that at this point you should have a pretty solid background in consuming the Yahoo! Web Search Services by way of some procedural PHP functions and a few straightforward classes as well.

As you saw for yourself in the course of the preceding articles, implementing a particular Yahoo! Web Search Service with PHP 5 is a relatively straightforward process, since it only requires an intermediate background in fetching file contents and processing multidimensional arrays using a few common PHP functions.

However, there's one particular thing that you'll certainly recall from the last tutorial: on that occasion I showed you how to utilize the respective Yahoo! traditional and video search services via two modular PHP 5 classes, which implemented some basic methods for performing the searches.

Of course, it's fair to mention here that the signatures corresponding to all these classes were very similar to each other. This naturally implies that it's possible to use inheritance to create one base class, and then derive some sub classes according to the web service that needs to be implemented in a specific case. Sounds pretty logical, right?

So, this last installment of the series will be entirely focused on demonstrating how Inheritance can be used in a helpful way to build a set of child classes that will come in handy for consuming a specific Yahoo! Search Service.

Now that you know the subject of this tutorial, it's time to learn how these web searching classes will be created with PHP 5. Ready to start? Let's go!



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

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort
   

PHP ARTICLES

- Hackers Compromise PHP Sites to Launch Attac...
- Red Hat, Zend Form OpenShift PaaS Alliance
- PHP IDE News
- BCD, Zend Extend PHP Partnership
- PHP FAQ Highlight
- PHP Creator Didn't Set Out to Create a Langu...
- PHP Trends Revealed in Zend Study
- PHP: Best Methods for Running Scheduled Jobs
- PHP Array Functions: array_change_key_case
- PHP array_combine Function
- PHP array_chunk Function
- PHP Closures as View Helpers: Lazy-Loading F...
- Using PHP Closures as View Helpers
- PHP File and Operating System Program Execut...
- PHP: Effects of Wrapping Code in Class Const...

Developer Shed Affiliates

 


Dev Shed Tutorial Topics: