Linux, Apache, Nginx, MySQL, Javascript and PHP

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

MySql

Showing running queries in MySQL

MySQL has a statement called "show processlist" to show you the running queries on your MySQL server.

VMWare

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&

Linux/Unix/BSD

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
Linux/Unix/BSD

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

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

Linux/Unix/BSD

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

VMWare Server Console Connection Refused

VMWare Server Console allows you to connect to a VMWare Server virtual machine running either on your local machine

PHP

Displaying PHP APC Cache Information

APC is the Alternative PHP Cache, which is a free, open, and robust framework for caching and optimizing PHP

Linux/Unix/BSD

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

PHP

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

Linux/Unix/BSD

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

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

Javascript

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

PHP

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

Javascript

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

PHP

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

Linux/Unix/BSD

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

1 42 43 44 45 46 50