Wednesday, June 8, 2011

Fatal error: Call to undefined method domdocument

I know you got frustrated with this problem, but after knowing the answer you will cetainly laugh  :)

To remove this error, you need to comment (add ; before) the extension for domxml  in php.ini - or actually BOTH of the php.ini files in XAMPP:

[path to xampp folder]/php/php.ini
and:
[path to xampp folder]/apache/bin/php.ini

;extension=php_domxml.dll

Do not forget to restart your apache, sometimes you need to restart your computer.

Hope this help you to laugh and resolve the error :)

Tuesday, March 22, 2011

Vimeo Video Crawling

  1. API
    http://vimeo.com/api
  2. Advance API
    http://vimeo.com/api/docs/advanced-api
  3. Video Search Function
    http://vimeo.com/api/playground/vimeo.videos.search

Dailymotion Video Crawling

  1. API
    http://www.dailymotion.com/doc/api/index.html
  2. PHP SDK
    http://www.dailymotion.com/doc/api/sdk-php.html#sdk-php
  3. Advance API Reference
    http://www.dailymotion.com/doc/api/advanced-api-reference.html#advanced-api-reference
  4. Need to call "video.list" function and parameter should be "search (string) - A search query"
  5. API Documentation
    www.dailymotion.com/doc/api/DailymotionAPIs.pdf

Wednesday, March 16, 2011

YouTube Video Crawling

Hi Guys,

I got the chance to work on YouTube API so thought that I should share the useful links so that it saves your time.
  1. YouTube API
    http://code.google.com/apis/youtube/getting_started.html#data_api
  2. Get search term feed
    http://gdata.youtube.com/feeds/api/videos?q=internet&v=2 (include the video id also)
  3. PHP Guide
    http://code.google.com/apis/youtube/2.0/developers_guide_php.html
  4. YouTube API with PHP
    http://www.ibm.com/developerworks/xml/library/x-youtubeapi/
  5. API Parameters
    http://code.google.com/apis/youtube/2.0/developers_guide_protocol_api_query_parameters.html#Searching_for_Videos
  6. Guide to display Videos
    http://code.google.com/apis/youtube/2.0/developers_guide_protocol_displaying_list_of_videos.html
  7. Custom YouTube Video Player
    http://tutorialzine.com/2010/07/youtube-api-custom-player-jquery-css/
 Hope this links help you to save your time :)

Thursday, February 24, 2011

Infinite loop in Facebook Application

Replace this line
$fb_user_id = $facebook->require_login();
to
$fb_user_id = $facebook->require_login($required_permissions = 'publish_stream');

You may change the permissions as per your requirement.