Recommended:

  • phpclasses.org
  • jsclasses.org
  • jsmag.com
  • siteapps.com
  • View our reviews on Hot Scripts
  • JS Tutorial
  • scripts.com
  • securesignup.com




Recent Comments

Powered by Disqus




Send email from Gmail using PHP

2011-08-29

Sometimes it can get pretty complex to configure a mail server. It is more complex to make other mail servers believe that your mailserver is legit and not a spam bot. That is why sometimes, you may want to use some external services to do it, and here is a way to send an email from your Gmail account, using PHP.   I'm using...

Comments Read more

Print google maps or include in PDF

2011-07-28

Everyone knows and everybody loves Google Maps. They provide easy interface to enhance your web aplication using maps with different customizations. Al those maps are dynamically generated using Javascript, so what happens when you want to print map or for example include in PDF file? It probably won't appear there, because you can include...

Comments Read more

Get video thumbnail from vimeo

2011-03-09

This function uses vimeo API to get information about video (including thumbnail). It takes new or old embed code or url of vimeo video and returns array with information about video. <?php function get_vimeo_thumb($vimeo) { $id = $vimeo; //try new embed code preg_match('/http://player.vimeo.com/video/([^?"]*)/is', ...

Comments Read more

Google image API using cURL

2010-09-30

There are alot of tutorials on Google Image search API using javascript interface, but what if you want to do it old fashion way, using php and curl? Well here is a way to do it. First you'll need to register for Google Search API key Then you can use this piece of code, just don't forget to input your API...

Comments Read more

Get skype status

2010-09-08

Skype is a popular voice communication program that is used by many millions of users worldwide. Many companies all over the world are using skype to provide support for their customers online, so it is necessarily to show skype status of support accounts on companies websites. To do it, you can use this simple function fro retrieving skype...

Comments Read more

Get Twitter account information based on username

2010-09-03

Here is a function that uses Twitter API, to get information about Twitter account based on Twitter username. If there is no account with that username, an error will be returned, if Twitter account is protected - empty array will be returned, else array with user information and latest account activities will be returned. Use print_r to...

Comments Read more

Get all guitar chord variations

2010-08-08

Here is a function that can get all guitar chord variations using chord name. It uses http://pargitaru.id.lv/api/ API, which can give chord information based on chord names, modifications like major, minor, etc, or any string and fret combination. This function takes chord name as a parameter, you can specify chord modification - minor,...

Comments Read more

Get list of episodes from IMDB

2010-08-03

Here is the piece of code that will get a list of episodes for TV series from this unofficial IMDB API. This function takes TV series name as a parameter and you may also specify year, if there are more TV series with same name. It returns an array with all episodes of specified TV series structured by seasons: <?php //name - title of...

Comments Read more

Generate QR code with meta data

2010-07-30

Here is a simple function to generate Quick Response codes with simple meta data like text, phone number, email or URL. This function takes 5 parameters: data to encode, type of meta, data to use(TXT for text, EMAIL for email, TEL for phone number and URL for a website link ), size of image in pixels, error correction level,...

Comments Read more

Get movie information from IMDB

2010-07-23

This function uses http://www.deanclatworthy.com/imdb/ IMDB API, which parses IMDB files and is updated frequently. It can retrieve array with information about movie taking movie title as parameter: <?php function get_movie_information($name) { $url = "http://www.deanclatworthy.com/imdb/?q=".urlencode($name); // send...

Comments Read more

Google maps API example code

2010-07-16

Here is the example code for using Google maps API. You can to get API key for your domain here: http://code.google.com/apis/maps/signup.html Then you can modify code to add functionality with PHP like save locations and map settings to database, etc. <!--Insert your API key instead of text YourAPIkeyHERE--> <script...

Comments Read more

Suggest your content to other sites

2010-07-04

This is not exactly API related thing, just a function that allows to create your content suggestions to other sites like twitter, google buzz and facebook. Of course by modifying you can add more sites. It is also recommended to use url shortening service, because sites like twitter has limited symbols. So code for...

Comments Read more

Get book title based on ISBN

2010-06-21

Here is a function to get book title and author based on book's ISBN number. To use this function you will have to register here: http://isbndb.com to get your API key. After that you can use this function to ge xml data about the book: <?php //fucntion to get book title and author based on ISBN number function...

Comments Read more

Get your unread GMail emails

2010-06-12

It is not actually API, it's just retrieving atom feed of your unread emails. You can then modify this function to parse feed to match your needs: <?php //fucntion to get unread emails taking username and password as parametes function check_email($username, $password) { //url to connect to $url =...

Comments Read more

Check if keyword has any result using Google AJAX API

2010-05-26

This is function to check if there are any google search results on the given keyword. You only need to modify it to insert your google API key. <?php function check_result($keyword) { //your google API key $key = ""; $url = "http://ajax.googleapis.com/ajax/services/search/". "web?v=1.0&q=".$keyword. ...

Comments Read more

is.gd API to shorten your links

2010-05-19

There is a website http://is.gd/ that allows you to shorten you links. To do it, you can use this function: <?php function get_url($url) { //checking if curl is available if(in_array ('curl', get_loaded_extensions())) { $ch = curl_init(); $timeout = 5; ...

Comments Read more