Detecting Mobile and Tablet Users using PHP


Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Hello, welcome to my another blog post how to detecting Mobile and Tablet users using PHP and redirect them accordingly. Today I will show you how to detect your website visitors device and then do your steps accordingly. If you create two sites, one for a desktop user and another one is for mobile and tablet user, this script will do the redirection job for you. Here I create two simple functions, one for mobile device and another one is for a table. Both functions check the visitor browser type and give you information about user device. Read more

Calculate distance between two lat long points php


Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Hello friend, welcome to my blog post how to calculate a distance between two lat long points PHP. Today I will give you a very interesting script to calculate a distance between two lat long. If you want to create listing and searching website like www.groupon.com or this types of websites you need this code. Using this code you can show the distance between customer and service provider or filter your area within a distance. Using the visitor IP address you can get visitor latitude, longitude and using service provider address you can get the latitude and longitude of the service provider. The using the below function you can get exact distance between to location. Read more

How to set custom page title for homepage WordPress


Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Hello friend, welcome to my blog post how to set custom page title for homepage WordPress. When we use a wp_title() function inside title tag and set a custom page template as a front page then we will see a blank page title in your page source code and see your domain name like www.example.com into your page title. So you need to set a custom page title for the homepage. So we can use WordPress filter hook to set page title. The wp_title filter is used to filter the title of the page (called with wp_title()). This filters the text appearing in the HTML title tag (sometimes called the “title tag” or “meta title”), not the post, page, or category title. Read more

How to add CC and BCC mail id in Contact Form 7

Hello friend, welcome to my blog post how to add CC and BCC mail id in Contact Form 7. Contact Form 7 is the most popular dynamic from builder plugin in WordPress. It has all the functionality to manage your form. But do you know how to add CC and BCC email address in Contact From 7. If not then please follow the below instruction to add CC and BCC email address into your form. Read more