WordPress redirect loop with CloudFlare Flexible SSL

If you have ever ran into this issue you’ll find that you are not alone. There are a number of plugins available that supposedly fix the problem but if you’re like me you hate to install to many plugins. If you are using Nginx/PHP-FPM you can forgo the plugin route and fix this issue before  … Read more

List installed PHP packages on Ubuntu and Debian

If you have ever found yourself wondering what PHP packages are installed on a Debian or Ubuntu server you can run the following from the command line. dpkg –get-selections [email protected]:~$ dpkg –get-selections | grep php libapache2-mod-php5 install php-pear install php5-cli install php5-common install php5-curl install php5-dev install php5-gd install php5-mcrypt install php5-memcached install php5-mysql install  … Read more

Getting Started With Zend Framework

The Zend Framework library is based around the MVC (Model, View, Controller) and Front Controller design patterns. The Front Controller is the point of entry for all requests that are NOT being served up directly by your web server. Such requests include style sheets, javascript, images and other static files. Zend Framework implements the front  … Read more

Coding Mistakes PHP Newbies Make

1. Never trust user input! Doing so can lead to security issues such a hijacked sessions, SQL injection and your entire site being compromised. This goes for all of the PHP superglobals such as $_SERVER and not just $_GET, $_POST and $_REQUEST arrays. The only exception would be the $_SESSION superglobal as this persists on  … Read more