Tips & Tricks Tutorials

Load Data While Page Scroll with jQuery

Load Data While Page Scroll with jQuery

Now a days data load while page scroll technique is mostly used by most of successful websites like Facebook, Google and Twitter. While you scroll down the page loads more and more data, using Ajax request this is called infinity scroll. So, Today I am going to show you how to load data while page scroll with jQuery and PHP using jQuery’s plugin. There are some jQuery method available to …

Continue reading

Add to Favorite using JavaScript

Add to Favorite using JavaScript

Bookmark feature of the browser is very useful, when we need that page in future. Sometimes we found an important web pages, that might be useful in future, so we used to bookmark this on the browser. So today in this article I am showing you how to add to favorite using JavaScript. To add to favorite I have created a JavaScript function addToFavorite() as follow: In some cases the …

Continue reading

Convert an email into link from text in PHP

Convert an email into link from text in PHP

In some websites, when we add comment with email then email automatically converts into a link, So today I am showing you how to convert an email into link from text in PHP. As ereg_replace() is deprecated in PHP 5.3 you should use preg_replace like below: Now you can use above function like below: And output will be:

Take Photo Using Web Camera in PHP

Take Photo Using Web Camera in PHP

Recently I have implemented take photo using web camera in my website for the profile photo. I found jQuery webcam plugin for the same. With this plugin image can be display to canvas to store the image on the server. So in this tutorial I am giving simple steps to implement take photo using web camera in PHP with live demo. First we need to add following scripts in head …

Continue reading

Some Tricks to Sort Out the utf-8 Problem

Some Tricks to Sort Out the utf-8 Problem

Everyone already knows about utf-8 problem, but sometimes the issue still persists even after approaches so many solutions. So in this tutorial I am including some tricks that will surly help you to sort out the utf-8 problem. Like the problem with currency symbols(Ā£, ā‚¹), the solution is based on HTML, PHP and MySQL tricks. In PHP you should use following line: You can set content type using following meta …

Continue reading

Save Base64 Encoded image to file using PHP

Save Base64 Encoded image to file using PHP

When you are handling API for apps ( iPhone, android, etc ), you can see that they provides the image in Base64 encoded format mostly, so we need to save base64 encoded image to server as a image file. This tutorial will let you know how to save Base64 encoded image to server as a image file using PHP. If you are getting the image data with image type like …

Continue reading

Allow Only Numbers in TextBox jQuery

Allow Only Numbers in TextBox jQuery

Some of the user information, you want in number/numeric form only and you can force a textbox to accept only numeric input. Using jQuery we can control user input with different key event handlers. So in this post I am going to share the jQuery code snippet to allow only numbers in textbox. Lets take a simple example for understand this: If you want to allow only numbers in textbox …

Continue reading

Tips To Increase Google Adsense Earnings

Tips To Increase Google Adsense Earnings

Increase Google AdsenseĀ earning by doing effective blogging. Effective blogging means smart blogging that provide quality content for visitors. There are lots of ways to increase our Google Adsense Earnings shared by various bloggers. I tried all those ways but not get results because of less CTR (Click Through Rate) and low CPC (Click Per Cost). So today I am sharing here some new and unique blogging tips to increase Google …

Continue reading