Tips & Tricks Tutorials

Upload Multiple Files with Progress Bar

Upload Multiple Files with Progress Bar

In this tutorial I will explain how you can Upload Multiple Files with Progress Bar. It will help you to show progress bar when you upload files. Note PHP’s default max number of file upload is 20. You can not upload more than 20 files at once. To allow more than 20 files you need to edit php.ini file and change max_file_uploads value. HTML Part: Following is the HTML of …

Continue reading

Remove all duplicate elements from an array

Remove all duplicate elements from an array

In this tutorial I am going to show you how to remove all duplicate elements from an array without using array functions in PHP. Below is a simple example of removing duplicate elements from an array without using array function and using array functions. You will get following in result: Using Array function in PHP: Hope this tutorial may help you.

Post into a Facebook page Using Graph API

Post into a facebook page Using Graph API

I have published a tutorial on How to Auto Post on Facebook Using PHP with Graph API which post status on user’s wall. Now in this tutorial I am going to show you how to post into a facebook page using Graph API with PHP. Create Facebook APP: To get the Facebook Access token you need to create Facebook App. To create a Facebook App please follow the steps of …

Continue reading

Draw a Circle on Google Map

Draw a Circle on Google Map

In this tutorial I will show you how to draw a circle on google map. We need to provide the radius, center point latitude and longitude, and different color options. Following are the options to draw a Circle on google Map for new york location with different color options also. Here is a complete example of draw a circle on google map. The result be like below: Hope this tutorial …

Continue reading

How to Create a Web Service using PHP

How to Create a Web service using PHP

Every application developer needs the ability to develop the services for wide range of platforms. We have SOAP (Simple Object Access Protocol) to create such a service and interact with the software with ease. So in this tutorial I will explain you how you can create a web service using PHP library nusoap. nusoap library : It’s very easy to create SOAP service. Download the nusoap library from http://sourceforge.net/projects/nusoap/. You …

Continue reading

Download File from URL

Download File from URL

In this tutorial I will explain you how to download file from URL. We two methods to get content from external URL’s, file_get_contents and CURL. Using file_get_contents : This function reads entire file into a string. But this function only works when fopen is enabled. Using CURL : CURL supports http, https, ftp, file protocols and more. Mostly enabled on all server these days. If you are using https url …

Continue reading

Custom marker with animation

Custom marker with animation

In this tutorial I will show you how to add custom marker with animation on google map. We will use an image as a marker and set a bounce animation on this, so when we click on the image it will start bounce. google.maps.Marker provides a icon option to replace the default marker icon with our own marker icon/image. Here is a simple example code of custom marker with animation. …

Continue reading

Share a link on LinkedIn

Share a link on LinkedIn

In previous posts I have shared how to share a link on Twitter and Facebook without using API. Now in this tutorial I am showing you how to share a link on LinkedIn without using API. Following URL is used to share a link on LinkedIn as a news with summary. You can change the URL, title and summary value in following URL: You can add this URL as link …

Continue reading