Tips & Tricks Tutorials

Enable image upload option in CKEditor using PHP




In this tutorial I will explain how to enable image upload option in CKEditor using PHP. To enable image upload option in CKEditor, follow steps as explained below. Integrate CKEditor Include following line in your view where you want to use ckeditor and place your ckeditor folder in root folder. Now add class ‘ckeditor’ to the textarea like below: Enable image upload option in ckeditor In ckeditor > config.js file …

Continue reading




Best PHP Forums




Forum is a place where you can start share and discussion with many other users on any topic. Any forum member can reply to your messages any time and you can see them anytime. There are many free open source forums available. PHP is popular open source in web technology. So in this tutorial we will discuss best PHP forums. Best PHP Forums   phpBB If you are looking for …

Continue reading




Send emails from local using XAMPP with SMTP

Send emails from local using XAMPP with SMTP




In this tutorial I will explain how you can send emails from local using XAMPP with SMTP settings. It will help you to check the display of the email body on your local system. Open D:\xampp\sendmail\sendmail.ini file and change the below values : Now open D:\xampp\php\php.ini file and change below: Now you don’t need to use any SMTP details in your application. Just use php mail() function like below. Hope …

Continue reading




Shorten URL using Adfly API in PHP

Shorten URL using Adfly API




In previous tutorials I have explained shorten URL API of Google and Bitly. Now in this tutorial I will show you how to Shorten URL using Adfly API in PHP. It is one of the most popular URL shortener service provider. Also you can earn money through this service, that is the main reason of it’s popularity. It is providing an API to easily implement this service. To get the …

Continue reading




Shorten URL using Bitly URL Shorten API

Shorten URL using Bitly URL Shorten API




My previous tutorial was about Shorten URL using Google URL Shortener API. In this tutorial I will show you How to Shorten URL using Bitly URL Shorten API with PHP. Bitly is one of the most powerful and popular URL shorten and bookmark service. It offers simple and powerful API to generate shorten URL from long URLs. To use Bitly URL Shorten API you have to signup for an API …

Continue reading




Shorten URL using Google URL Shortener API

Shorten URL using Google URL shortener API




In this tutorial I will show you how you can shorten URL using Google URL Shortener API with PHP. Google provides URL shortener service (goo.gl) with a Google URL Shorten API key. Get detail information of Google Shortener API from http://code.google.com/apis/urlshortener. Get your API key by creating a project or existing project from https://console.developers.google.com. I have created a basic GoogleShortUrlApi class for shorten long URLs and expand shortened URLs. This …

Continue reading




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.