Youtube Search Script
Mar 29, 2009 Miscellany
I’m looking for a PHP script do use with google/youtube’s API. The script will not only use the feeds, but also allow users to login to youtube and other video hosting sites, and upload videos directly from my website.
I know there are lot of other useful scripts, but I want something that is simple and plus it works with PHP 4.3.1, that is what I have with my hosting.
Everywhere I read, there are a lot of scripts for PHP 5.
Here is what I have done so far.
- I downloaded http://magpierss.sourceforge.net/ from there.
- Downloaded Jquery and also Ceebox from here, http://catcubed.com/tag/jquery/
- Parsed the feed and it works nicely.
- But I’m stuck :
- What fun is there spending a lot of time creating a script that only searches videos and no more ? Besides, searching videos can be done with plain JavaScript too.
Before I continue, here are some Ifs:
If your host supports PHP,
{ http://code.google.com/apis/youtube/code.html#PHP }
If you want javascript,
{ http://www.google.com/uds/solutions/wizards/videobar.html }
if you want the best free php script,
{ http://www.clip-motion.com/ – it’s a good one. }
So, while I am still searching for alternative ways to get this API working, following is a brief code that works. It’s in its basic form. But you might actually enjoy learning as I am doing with this script.
I will share with you the final script as it develops further.
Thank you.

March 30th, 2009 at 1:07 am
[...] Youtube Search Script PHP 4.3.1 | Liae Blog [...]
October 20th, 2010 at 2:06 pm
Nice api search video from youtube
November 2nd, 2010 at 12:00 am
this was just an experiment. i would not recommend this script for a large volume search and it usage a lot of bandwidth. but if you are on php 4 and if you are out of luck, you might give it a try. also there is no need to use this function as youtube now allows various other means to do the same thing such as using simple java script etc. look under their developer API help section for further instructions.