News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

WaxJelly Blog:
A More Complex PHP script using the YouTube API (with video details) PART 2
August 29, 2006 @ 07:36:04

Continuing on from their previous post on integrating PHP and the YouTube API, WaxJelly is back today with part two focusing on a cleaner, more powerful implementation of the script.

This is Part 2 of the YouTube API PHP Script. I've added a good bit of functionality, fixed a few bugs, and cleaned up the code from some unnecessary redundancies. However, I'm leaving Part 1 up for those of you who want the introduction. I'm mainly going to highlight the stuff that's new in this script and, as always, provide the code at the bottom of this post.

He shows the updates made, including:

  • cleaning up of the $_GET vars
  • the addition of constants
  • new functions to help with setting up the page
  • a function to loop through the results
  • a large function to create the HTML in the output
  • a function to add a "bookend" for each video pulled
You can check out all the code and information on this new version here.

0 comments voice your opinion now!
part2 youtube integration api complex bugfix functionality part2 youtube integration api complex bugfix functionality


blog comments powered by Disqus

Similar Posts

Lorna Mitchell's Blog: Invalid Protected Resource URL in pecl_oauth

Christoph Dorn's Blog: FirePHP 0.2 Released

SitePoint PHP Blog: Best Practices REST API from Scratch Introduction

Gonzalo Ayuso: Building a Silex application from one Behat/Gherkin feature file

Pierre-Alain Joye's Blog: Zip finally reached stable!


Community Events





Don't see your event here?
Let us know!


release tips framework laravel series zendserver community api deployment conference list podcast code interview threedevsandamaybe symfony introduction language bugfix development

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework