Category: PHP

  • , ,

    PHP Script to Send Email with Attachment

    PHP Script to Send Email with Attachment

    I had searched in Google for long time for the script to send an email with file attachment (all types of file pdf files,word files and images etc……). It was hard thing to find out exact script. Here I had…

  • ,

    Google URL Shortener API Service PHP Script

    Google URL Shortener API Service PHP Script

    Google URL Shortener API is one of the Google service, which takes long url (http://smarttutorials.net/demo/google_url_shortener.php) and squeezes it into short as URL with few characters (http://goo.gl/EGA5Y) to use in tweets and etc…   Google URL Shortener API Demo   http://smarttutorials.net/demo/google_url_shortener.php…

  • ,

    How to get Google API key and Google oAuth 2.0 client ID

    How to get Google API key and Google oAuth 2.0 client ID

    Google API key is too important to use all the google services like Google maps, Google URL shortener, Google calender and etc.. in your application. Google uses this API key for authentication purpose when we making request to the Google…

  • ,

    Google Maps Reverse Geocoding API in PHP

    Google Maps Reverse Geocoding API in PHP

    Google Maps Reverse Geocoding API is the tool (web-service), which converts the given geo-coordinates (latitude , longitude) in to human readable format address like in the illustration below 13.0810 & 80.2740 ————> Poonamallee High Road, Park Town, Chennai, Tamil Nadu, India (Geo-coordinates)…

  • ,

    Google maps Geocoding API using PHP

    Google maps Geocoding API using PHP

    Google maps Geocoding API : Geocoding is the process of converting the given human readable address (no:32, New Street, T nagar,Chennai, India) into geographical co-ordinates (latitude : 15.467 , longitude: 45.789). no:32, new street, t nagar, chennai, India    …

  • ,

    Generate random password in MySQL

    Generate random password in MySQL

    It’s very simple to generate random password in MySQL. Here is sample MySQL query to generate random password. SELECT substring(MD5(RAND()) from 1 for 10) AS password To generate random password I’m going use three MySQL functions 1. RAND() 2. MD5()…