Codeigniter Tips and Tricks

Hi friends, Codeigniter is my all time favorite php framework in my life. So here I want to share few codeigniter tips and tricks to you. feel free to ask any doubts about this tips. CodeIgniter is very easy me to install. It requires PHP version 4.3.2 or newer and … Read more

New features in PHP 5.4 version

The process to release PHP 5.4 is moving on. As you probably know, the updates that were intended for postponed PHP 6 were added to PHP 5.4.0 instead, so now PHP includes a huge set of new language features and removes several legacy behaviors. Because of that I created a list of … Read more

jQuery.noConflict()

Many JavaScript libraries use $ as a function or variable name, just as jQuery does. In jQuery’s case, $ is just an alias for jQuery, so all functionality is available without using $. If we need to use another JavaScript library alongside jQuery, we can return control of $ back to the other library with a call to $.noConflict() … Read more

New HTML5 Features to Improve your Web Form

HTML5 introduces numerous new options to create more functional web forms. In this article, I’ll show you exciting new HTML5 features to improve your forms and make them more functional and user-friendly. Please note that HTML5 is an emerging technique. These examples are not intended for use on a production … Read more

How to calculate distances in PHP

Here is a very handy function, which calculate the distance from a point A to a point B, using latitudes and longitudes. The function can return the distance in miles, kilometers, or nautical miles. [php][file]http://w3lessons.info/wp-content/uploads/2011/12/calculate_distance1.txt[/file][/php] Usage Using the function is pretty simple: All you need to do is to call … Read more

Prevent hotlinking using .htaccess

Bandwidth theft or “hotlinking” is direct linking to a web site’s files (images, video, etc.) Hotlinking (the act of using images from another site than yours) is unfortunely a common practice which can waste lots of your precious bandwidth. This useful snippets will redirect all hotlinked images to a specific … Read more

How to execute cron job in codeigniter using PHP

Introduction to Cron jobs in Codeigniter Codeigniter runs based on the front controller pattern where all the requests are routed using the index.php file. So if we want to execute any code on codeigniter application, we have to go through this routing procedure. Consider a situation where we want to … Read more

HTML5 and Jquery based Audio/Music Players

HTML5 and jQuery have taken over from flash lots of web elements. However video and audio player is one web element that many people still prefer to use flash based players. Sine some mobile platforms don’t come with flash support by default so these players become useless when browsing website on mobile … Read more

Generate Dynamic Favicon in PHP

Gmail has just launched small but really useful feature in Gmail Labs. Dynamic Favicon showing unread email counts directly in your browser tab icon. If your browser window has lots and lots of tabs open at anytime, this might be really a wonderful feature that lets user know of any unread item. … Read more