PHP

Change WordPress Site URL

I’m almost positive many of you web developers have had to move a WordPress site in your day. Well, sometimes the domain changes, and you realize how much pain you’re in for since that involves scouring the database. Fear not! WordPress has a simpler alternative, a feature that is nearly as awesome as the picture above! Courtesy of the WordPress Codex: Relocate method WordPress supports an automatic relocation... read more

Solution: Using Include or Require in PHP but Can’t Find File

The situation is you are trying to use include or require to load a file from a folder in your site, when the file you are calling include or require from is inside a different folder in the site and NOT the document root. The issue is, when you use include outside of your document root, it considers that folder as the document root, so you are forced to give it the real root directory of your website on the server. Your... read more

PHP Option Select Menu Generator Function – Dropdown Menu

http://snipplr.com/view/43100/php-option-select-menu-generator-function–dropdown-menu/ ... read more

Code Ascetic – SEO Tracking in 4 Lines of Code

I am going to save you all a bunch of headaches and time staring into the sky for the SEO God’s to grant you an effective way to track the conversion from traffic to lead. It is as simple as a few lines of PHP code. I am sure there are equivalents in the other server side scripting languages that someone can kindly post in a reply. Here is the Snippet. if (is_null($_COOKIE['referer'])) setcookie(“referer”,... read more