Linux, Apache, Nginx, MySQL, Javascript and PHP
Create a file with a unique name with PHP
The PHP function tempnam() creates a file with a unique name. This can be useful if you need to
Showing running queries in MySQL
MySQL has a statement called "show processlist" to show you the running queries on your MySQL server.
Install VMWare Tools on a Linux Guest Virtual Machine
VMWare Workstation and the various flavours of VMWare Server allow you to install a package called "VMWare Tools&
Changing the default text editor on Linux
The default command line text editor on Linux (and BSD varaiants) determines what is used when you run commands
Saving a file downloaded with wget with a different name
wget is a command line utility for downloading files from FTP and HTTP web servers. By default when you
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
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
VMWare Server Console Connection Refused
VMWare Server Console allows you to connect to a VMWare Server virtual machine running either on your local machine
Displaying PHP APC Cache Information
APC is the Alternative PHP Cache, which is a free, open, and robust framework for caching and optimizing PHP
Getting Transaction Check Error with Yum
I needed to install the MSSQL libraries for PHP on a CentOS 5 server and ran into a few issues
Install APC for PHP on Linux
APC is the Alternative PHP Cache, which is a free, open, and robust framework for caching and optimizing PHP
How to mount an ISO image on Linux
An ISO image or .iso file contains the disk image of an ISO 9660 file system, which is used for
PHP error Call to undefined function ImageCreateFromPNG
If you get the following error message in PHP then it means you need to have the PHP GD
Using Javascript to focus a form element onload
The Personalised Plates website has a big input box on every page for searching for available personalised plates. The
Splitting a large Apache log file with PHP
A little while back I needed to split a large Apache log file (3.5GB) up into smaller pieces and
Assigning values to associative arrays in Javascript
Javascript has zero indexed integer arrays and also associative arrays. They work in a similar manner but there is
Get unique array values with PHP
The PHP function array_unique() allows you to create a new array which contains only the unique values from
Using find to locate files modified in the last 24 hours etc
The Unix/Linux shell command "find" is really useful for finding files on your computer. There are