PHP Error Class ‘XsltProcessor’ not found

If you get the following error message in PHP then it means you need to have the XSL extension installed. Obviously the /path/to/file.php will be the actual path and filename of the PHP script the error occured in, and the line number will be the actual line. The PHP manual says that "PHP 5 includes the XSL extension by default" but one of my CentOS 5 installations it didn’t seem to be; the following post looks at how to install this extension on CentOS 5.

Fatal error: Class 'XsltProcessor' not found in /path/to/file.php on line 138
Categories PHP

Format a partition with the ext3 filesystem

The ext3 filesystem is a Linux filesystem with journalling capabilities. I’m always forgetting the command I need to run to format a partitition with the ext3 file system so have posted this article so I always have a easy to find reference for it… The example used here is done on the command line, and not using a GUI tool.

VMWare Server Console Connection Refused

VMWare Server Console allows you to connect to a VMWare Server virtual machine running either on your local machine or a remote machine. The remote machine might be on your local network or located somewhere on the Internet. This post looks at how to deal with the error message in the VMWare Server Console "unable to connect to remote host: cannot connect to remote host x.y.z.a: connection refused" when trying to connect.

Displaying PHP APC Cache Information

APC is the Alternative PHP Cache, which is a free, open, and robust framework for caching and optimizing PHP intermediate code. I posted about how to install APC on Linux a couple of days ago, and will now look at the apc.php script which comes with APC and shows information about how much of the cache is being used, what files are being cached, the number of times they’ve been accessed etc.

Categories PHP

PHP echo with commas versus concatenation

"echo" and "print" are used in PHP for writing strings out to a stream. I have always used concatenation when writing out multiple strings with echo or print, but recently discovered that echo accepts multiple arguments or parameters, comma separated like a regular function call. This post does some benchmarking to see which is faster: echo with commas, echo with concatenation, or print with concatenation.

Categories PHP