Archive | PHP RSS feed for this section
PHP Coding Tips

10 Recommended PHP Coding Tips To Enhance Your Daily Coding Skills

Some say code is beauty, some say code is poetry and it is up to you (the developers) who writes such poetry and make it a beauty. Beautiful written code prevents coding hazards, took less time to understand by any other developers. So, no matter if you are a novice developer or an advanced developer, [...]

Read full story Comments { 7 }
Paging with PHP MySQL

How To Create And Implement Paging With PHP / MySQL? [An Example Script]

Few months back, I have posted a simple tutorial on “How to create paging with PHP / CSS” where I left the implementation part for you guys. Now, after lots of requests from the readers I have created a script which will demonstrate the implementation. After reading and using this script, you would be able [...]

Read full story Comments { 14 }

$_SERVER['REMOTE_ADDR'] Does Not Work Always, How To Get Visitor’s Real IP Address In PHP?

When you are connected to internet from the internet connection, it is not always directly connected to internet gateway. It may be connected to host computer which will be controlling most of the clients computers and so on. In this architecture of network, visitors IP address is not the actual IP address from which he/she [...]

Read full story Comments { 4 }

How To Redirect Your Domain From WWW To Non-WWW And Vice-Versa Using .htaccess File?

Today, we are going to tell you about, how you can redirect your domains from www.example.com to example.com or vice-versa using the .htaccess file in a LAMP setup. Usually it is advised to have a single domain choice, either www or non-www for your domain, which will basically protect you from duplicate url’s of your [...]

Read full story Comments { 2 }

How To Merge Two Multi-Dimensional Arrays In PHP?

Few days back, one of my friend asked me How should I merge two arrays? I didn’t know it and I replied, let’s find out a pre-made method on php.net. Surprisingly, we couldn’t find the exact solution but I was under impression that there should be a in-built php function which does this. So, later [...]

Read full story Comments { 5 }