PHP
  Home arrow PHP arrow Using Yahoo Web Services to Perform Se...
Dev Shed Forums 
Administration  
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 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Download TestComplete 
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

Using Yahoo Web Services to Perform Searches with an Object-Oriented Approach
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2008-02-12

    Table of Contents:
  • Using Yahoo Web Services to Perform Searches with an Object-Oriented Approach
  • Building a web search class with PHP 5
  • Testing the previous “WebSearchService” class
  • Building a video searching class with PHP 5

  • 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

    PCmover - $15 Off with Coupon Code CJPH7Q

    Using Yahoo Web Services to Perform Searches with an Object-Oriented Approach
    (Page 1 of 4 )

    If you’re a PHP developer who wants to take the first steps toward building web applications that interact with specific web services, in this article series you’ll find an approachable guide to implementing some of the most useful search services provided by Yahoo! by using a few simple PHP scripts.

    As you’ll possibly recall, in the last tutorial of this series, I finished discussing the use of the popular Yahoo! Image and Video Search services with PHP 5 by utilizing some custom PHP functions that were actually very easy to grasp and code. Basically, I defined a bunch of procedural functions for implementing a specific Yahoo! Web Service, and for creating small, yet efficient, pieces of code that can be reused easily within the context of different PHP 5 applications.

    Implementing one or more Yahoo! Web Services by way of a procedural approach has certain advantages, since this procedure can be tackled without the use of sophisticated programming techniques. And it only requires an intermediate background in some of the most common PHP native functions, such as the familiar “file_get_contents(),” the “foreach” construct, and a few others.

    However, at this point it’s quite possible that the following question is already spinning in your mind: what should I do if I need to implement a specific Yahoo! web service within an existing PHP 5 application that has been previously built using an object-oriented approach? Well, actually I’m glad to see you came up with such a useful dilemma!

    Coupling a concrete Yahoo! web service with an existing object-based PHP 5 application isn’t as difficult as it may seem at first sight, particularly if you’ve spent some time working with classes and objects. And speaking of PHP classes, they bring me straight to the subject of this fifth part of the series, since in the next few lines I’m going to show you how to implement some of the Yahoo! Web Search Services that you learned in the previous articles, but this time using the object-oriented paradigm.

    Sounds pretty interesting, right? In simple terms, my plan will consist of creating some compact and modular PHP 5 classes, which will define a few basic methods for working with the different web services offered by Yahoo!.

    Hopefully, by the end of this article, you’ll be equipped with the required background to implement one or more of these useful Yahoo! search services by using an object-based approach. Thus, let’s get rid of the preliminaries and start learning how to achieve this goal with PHP 5. It’s going to be an instructive journey, trust me!

    More PHP Articles
    More By Alejandro Gervasio


       · Over the course of this fifth chapter of the series, you’ll be provided with the...
     

       

    PHP ARTICLES

    - Setting Up a Web-based Image Hosting Service
    - Comparing Files and Databases with PHP Bench...
    - Setting Up a Web-Based Image Gallery
    - Using Timers to Benchmark PHP Applications
    - Benchmarking Applications with PHP
    - Setting Up a Web-Based File Manager: PHPfile...
    - Developing a Modular Class For a PHP File Up...
    - Setting Up a Web-Based File Manager: bfExplo...
    - Defining a Custom Function for File Uploader...
    - Parsing Child Nodes with the DOM XML extensi...
    - Creating an Error Handling Module for a PHP ...
    - Accessing Attributes and Cloning Nodes with ...
    - Retrieving Information on Selected Files wit...
    - Handling HTML Strings and Files with the DOM...
    - Building File Uploaders with PHP 5

     
    Accelerating Trading Partner Performance
     
    Competing on Analytics
     
    Cost Effective Scaling with Virtualization and Coyote Point Systems
     
    Five Checkpoints to Implementing IP Telephony
     
    Hosted Email Security: Staying Ahead of New Threats
     




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway