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 …
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 …
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 …
Remove Category Title from Specific Page
As I have already explained how to remove title from category page in Magento in our previous tutorial. But if your requirement is to remove category title from specific page in Magento, you can do this by using following simple steps. Just go to following file and find the following line: Now for example if your category id is 55, you can remove category title for this page with following …
Get Order Details from Order ID in Magento
In Magento quite often you need to get order details from order ID. So in this tutorial I am going to show you how to get order details from order ID. There are two types of order ID’s, one is real order ID and the other is order increment ID. So first I will let you know how to get real order ID from order increment ID. To Get real …
Remove Title From Category Page in Magento
Magento displays category title on category listing page by default which has it’s own advantages. But due to some customization requirement, if you are looking to remove title from category page in Magento template, you can do that easily by follow simple and quick steps described in this tutorial. Just go to file and find following lines of code Now comment these lines look like below: By this way you …
How To Display Related Posts In WordPress
Allowing users to navigate throughout your site from post to post makes for longer browsing time on the site. You can display related posts at the end of the post in WordPress so your visitors more engaged with your site and you get a chance that they will convert into a lead or a sale. So in this post I will tech you how to display related posts in WordPress …
Require Users To Login Before Viewing Post
Some of websites require login before viewing some pages to hide some important data from anonymous users. So if you also want to require users to login before viewing post in WordPress, here is the solution. Just copy the following code in functions.php file of your theme. Now open your theme’s single.php file and copy following code before get_header(); line like: Currently we have just two post ids to require …