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

Find number of days between two days except weekends in 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

Hello friends, welcome to my another blog. Today I will show you how to find the number of days between two days except weekends in PHP. If you are creating an employee management application or leave management application you need to calculate a total number of working days except weekends between two days. Using the below script you can calculate the number of days between two days except weekends. So lets began. At first, I create a simple function to calculate the number of days between two days, then I will modify the function and make it work for our application. Read more

Add, edit, delete, list application using php mysql


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

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 friends, welcome to my another blog post how to create a simple add, edit, delete, list application using php & MySQL. This application is for beginners who started their career in php and want to know how php interact with MySQL. Using this application you can check your MySQL command like SELECT, INSERT, UPDATE, DELETE. At first I will describe the whole process (logic) and then I will code it.
Read more

How to get user details from IP Address in 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

Hello friends, welcome to my another blog post get user details from IP Address using PHP. Using this small application you can get visitor’s country, state and geographic location. The concept behind this application is that when a user visit to your website you can easily get the IP address of that user using $_SERVER[‘REMOTE_ADDR’]. Just store the IP address into a variable and pass that IP into third party websites API. This third party API will give you all the information related to that IP address. Read more

How to create Paypal pro sandbox account

Hello friends, welcome to my another post how to create PayPal pro sandbox account. Few months ago I created a PHP script how to integrate PayPal pro in php. Many people asked me, how they create PayPal pro sandbox account and test the script or they got some error like security header is not valid or this transaction cannot be processed due to an invalid merchant configuration etc. All error occurs because of PayPal pro account. If you set up your Paypal pro account correctly, you will never get this types of error. So please follow the below instructions to create Paypal pro sandbox account. Read more

Remove File Extension from URLs using Htaccess


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 friends, welcome to my another blog post how to remove the file extension from URLs using htaccess file. If you want to make your website URLs more user and search engine friendly then it is very important to remove file extension like .php, .html, .htm from your site URL. In this blog post I will show you how to remove file extension from URLs using htaccess. Read more

Check multiple value exists in array PHP

Check multiple value exists in array

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 friends, welcome to my another blog post check multiple value exists in array using PHP. In my anothertutorial I show you how to check value exists in array php. But that code does not allow to check multiple value exists in array. But if you want to check multiple values exists in an array then what to do. There is a multiple options for you. You can create your own function, search in google or use my function. In this post I will create a custom function my_custom_function which will do the trick for you. Read more

Send html email in php example

Send html email in 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

Hello friends, welcome to my new blog post send html email in php. In my previous few post I gave you some OpenCart tips. But today I will tell you how to send html email in php. PHP has a built in mail function by which we can sent mail to anybody from our server. But when we sent mail to someone we have to care full about our mail content as well as mail design. If we sent a mail with proper look and html design using php then we need to put some additional code to support html in our mail. Read more

php validation script for input fields

php validation script

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

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

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

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, friends in my previous post I show you an opencart trick but in this post I will show you all types of php validation script for input fields. Here I create a specific function for every types of validation like email address, name, url, zip code, USA zip code, UK zip code, social security number, international phone number, US phone number, Indian phone number, Read more