December 26, 2009 - 12:52 am
Tags: cPanel, EasyApache, php 5.3.1, WHM
Posted in PHP, cPanel / WHM | 1 comment
After much patience and persistence on the part of myself and many other individuals, we now have PHP 5.3.x support in EasyApache, starting with PHP 5.3.1. For those of you who may be unaware, EasyApache is WHM/cPanel’s tool for creating custom compilations of Apache and PHP. This solves many problems for those who have been [...]
Today, I decided to implement a popular distributed caching system called memcached. Memcached allows PHP objects and variables to be stored in memory, which when used properly, can decrease page load time and server load. Memcached can also work as a central cache for a cluster of servers. File-based caching systems work by generating static [...]
Yet another PHP 5.2.xx release took place a few days ago, which brought us over 75 bug fixes, some security-related. If you are running any PHP 5.2.xx series release, make sure you apply this update. Full details on the PHP 5.2.11 release can be viewed at PHP.net. In addition, WHM/cPanel implemented this version of PHP [...]
Recently, I began working with Zend Framework 1.9.2 to restructure one of my web sites. I learned how to create an extension of the Zend_Db_Table_Abstract from a great “Getting Started” tutorial, but I found myself rewriting the table prefix with each and every new table. Below I explain one solution to this problem, but I [...]
September 7, 2009 - 7:22 pm
Tags: cPanel, php 5.3.1, release candidate, WHM
Posted in PHP | 3 comments
This is just a notice to let everyone know that the first PHP 5.3.1 release candidate has been released. For those of you who use cPanel/WHM, this means that you are one step closer to having out-of-the-box PHP 5.3 support. On cPanel’s forums, a member of cPanel Quality Assurance said cPanel would most likely wait [...]
(Note: The following is a revised tutorial I wrote earlier this year, transferred from one of my old web sites.) Using the Singleton design pattern is a simple way to limit the number of class instances to one, helps keep database connections organized, and can also save memory. The PHP code below is a basic [...]
What can I say about our beloved IDEs? To those just learning, this may just seem like another meaningless acronym in a world already filled with pointless acronyms; however, this will save your life … literally! So, what is an IDE? IDE stands for Integrated Development Environment. IDEs allow you to perform a multitude of [...]
In my quest to minimize the memory usage of our beloved blogging platform, WordPress, I came across eAccelerator. After using Zend Server, and experiencing the performance boost their caching mechanism created, I started looking for something that would work easily with cPanel/WHM. Lo and behold, there exists a program called eAccelerator which is quoted as [...]
November 21, 2009 - 9:15 am
What about PHP 6? They’ve been talking about 6 for like 5 years now. wtf? Progress is slow in the php world.
November 22, 2009 - 9:14 pm
I wonder… there were huge advances from PHP 5.2 to PHP 5.3, and I think that a lot of developers might have used that to complete a major version change (i.e. PHP 5.2 => 6.0 vs. PHP 5.2 => 5.3). With PHP 5.3, we got namespaces, closures, garbage collection, and a lot of performance boosts.
Other than unicode support, built-in APC, and the deprecation of some of the features no longer needed, I wonder what else is different in PHP6. I thought that namespaces, static binding, and a few other things were only going to be released in PHP6, but we saw them in PHP 5.3. Perhaps this was merely to test these features out on a large audience so they could perfect them in PHP6.
Who knows! I’m in no rush, but I am definitely looking forward to PHP6.
-Chris