Linux, Apache, Nginx, MySQL, Javascript and PHP
How to specify custom user styles in Firefox
It is possible to specify custom user styles in Firefox. These override the default browser styles, and are in
How to escape variables with PHP PEAR DB
When using the PHP PEAR DB database abstraction library it is important to escape variables just as it is
Iterate through an associative array the jQuery way
A few months ago I posted how to loop through key value pairs from an associative
Specify multiple selectors with jQuery
Today’s jQuery post is a quick tip for writing more concise code, which is to specify multiple selectors using
Get the value of a PHP constant dynamically
It is possible to get the value of a PHP constant dynamically using the constant() function. It takes a
Convert a UNIX timestamp to a datetime with MySQL
Dates and times can be stored as an integer value as a UNIX timestamp. This isn’t a particularly human
Extract Google Analytics report attachments with PHP
10 days ago I looked at how to send Google Analytics reports by
Make an entire table row clickable with jQuery
If an HTML table row contains only one <a> link it can be useful to make the
Create an array containing a range of numbers or letters with PHP
Here’s another PHP function I discovered the other day which you may find useful. It’s called "range"
“Clearing” floats with overflow: auto
It is so simple to clear floating HTML elements with overflow:auto but this doesn’t seem to be common
jQuery’s toggleClass function
While looking up something else in the jQuery documentation just now I discovered a useful function "toggleClass"
MySQL: Using IF in a WHERE clause
I recently needed to use an IF statment in a WHERE clause with MySQL. This isn’t the most ideal
Remove a saved password with Google Chrome
If you have saved a password for a website in Google’s Chrome you can easily enough remove that password (
Get Apache to parse .html files as PHP
When PHP is installed in Apache files with the .php extension are interpreted as PHP scripts. It is possible
Get the number of days in a month with Javascript
This post shows how to get the number of days in a month using Javascript by passing the month
jQuery: Changing the default text value on focus, and showing plain text in a password field Part 1
Last year I posted a couple of jQuery articles about how to change the default text
Change the email body character set with PEAR Mail_Mime
The PHP PEAR Mail Mime library makes it easy to create multi part emails with attachments and alternate plain
CSS :first-child and :last-child selectors
The CSS selectors :first-child and :last-child are used to apply styling to the first and last child elements of