I’ve seen that many of my friends are struggling with the uploads of the bigger or larger files in PHP. After looking at their struggle, i’...
Hide .php extension with url rewriting using .htaccess
I’m going to show you how to rewrite the URL instead of renaming the file extension Using this technique you will see product.html in the...
5 useful url rewriting examples using .htaccess
If you are looking for the examples of URL rewriting then this post might be useful for you. In this post, I’ve given five useful examples ...
Getting country , city name from IP address in PHP
I’ve used the API from hostip.info to fetch the country name , city name and country code from the given IP address. I’ve mad this functi...
Ip address validation in PHP using regular expression
If you don’t know how to validate the IP address format in PHP, then you are in the right place.I’ll show you here how to validate the IP a...
Creating and Parsing JSON data with PHP
I’m going to tell you something about JSON data and how we can handle them via PHP. Although, JSON stands JavaScript Object Notation , it...
Prevent form post request from another domain in PHP
HTTP POST request from outside domain is one of the way of attacking your website. A intruder can use JavaScript in other domain or localho...
8 useful server variables available in PHP
You guys must have know about server variables in PHP. Server Variables are those variables which are inside the super global array named $...
Getting real IP address in PHP
Are you using $_SERVER['REMOTE_ADDR'] to find the the client’s IP address in PHP? Well dude, you might be amazed to know that it may...
Using remote files in PHP
As long as allow_url_fopen is enabled in php.ini, you can use HTTP and FTP URLs with most of the functions that take a filename as a parame...
Installing Memcache On Windows For PHP
Installing memcache on Windows XP / Vista is kind of like voodoo for those of us who are not disciplined with compiling code from source....
Make Your Website Completely UTF-8 Friendly
Running an Internationalization / Localization [or i18n / L10n] friendly website can be tricky, and sometimes downright maddening for those...
Setting Up Your Localhost As Example.Com
Often times when people install WAMP [or LAMP ] stacks on their machines, they’ll commonly use http://localhost/ to access their local...
Simple Image Resize Calculator Function
Here is a simple function to calculate the width and height of an image given the constraints you want the image to fit in. This is great f...
Memcache & MySQL PHP Session Handler
I have recently read Cal Henderson’s book, Building Scalable Web Sites, and was inspired 6 ways from Sunday on just about every approach I ...
Using Memcache With MySQL And PHP
Memcache is a great caching tool available for nearly every scripting or programming environment. I use it with PHP to speed up some applic...