Category : PHP

58 posts

Here I have complied 5 Random Useful PHP Code Snippets / Function, which are very handy to use in any web based project, you can simply add these snippets and functions in you code library and use anywhere in project. It is good idea to have good pre defined php function so that you can …
We all know the power of cURL, In short cURL is a library that lets you make HTTP requests in PHP ,In the part of web application development cURL must be enable in our web server, Because it is important to handle third party api request like SMS Gateway many more task you can easily …
Here I am going to share information about How To Get Remote IP Address in PHP, you can use below function keep record of the user who logged into your website through his/her IP address and track that users. function getRemoteIPAddress() { $ip = $_SERVER['REMOTE_ADDR']; return $ip; } The above code will not work in …
In this quick post i am going to share a useful php tips to destroy / expire session after X minutes, If you want to destroy user’s session after x minutes and don’t want to use default session timeout which is 24 minuets. Like as your need to increase session timeout till 40 minutes then …
In this quick tutorial I am going to share a quick php function to Calculate distance between two points in php using latitude and longitude,This below function calculates the distance between two points. Passed to function: lat1, lon1 = Latitude and Longitude of point 1 (in decimal degrees) lat2, lon2 = Latitude and Longitude of …
In few days back tutorial, I have talked about power of .htaccess and how can you easily block hunting down and killing spammers, scrapers, and other online scum ips with the help of .htaccess, But When htaccess .htaccess is not available, we may summon the versatile functionality of PHP to get the job done. This …
In this tutorial I’ll show you How to Get Facebook Page Like Count In PHP Using FB Graph API, This is latest and updated version and works well with new version of facebook graph api. In older version you can directly fetch fb likes by just passing the facebook page username/id but in updated version …
In this tutorial we’ll talk about how to redirect domain according to country IP address using php and .htaccess, You can write .htaccess rules that filters and redirect traffic based on country. If you have multi country website and you are looking for a solution to automatically user should redirected to their origin country then …
PAGE TOP

Don't show again | X

Follow Rohit on Facebook

Join me to get interesting insights!

Rohit Kumar