Linux, Apache, Nginx, MySQL, Javascript and PHP
jQuery Facebox: setting the width
I’ve been looking at the jQuery Facebox plugin recently which is a Facebook style lightbox for loading remote content,
jQuery Facebox window with full height with scrollbar
I’ve been using the jQuery Facebox plugin a fair bit on various websites to show stuff in "inline&
PHP Caching Headers
Yesterday I looked at how to control browser caching with Apache’s mod_expires and today look at how to
jQuery: Get the vertical mid point of the browser’s window
jQuery’s $(window).height() and $(window).scrollTop() can be used to calculate the vertical mid point of a browser’s window.
Different CSS style rules for printing
This post looks at how to specify different CSS style rules for printing: using a secondary style sheet for
Multiple variable assignment with PHP
This post shows how it is possible to assign multiple variables with the same value with PHP. This can
Using Apache mod_expires to control browser caching
Apache’s mod_expires module allows settings by file type to control how long browsers cache files. This is useful
jQuery Facebox Basic Example
The jQuery Facebox plugin creates a Facebook like lightbox which can be used to load external pages, images or
Logging errors with PHP
PHP has several settings for logging errors; in this post I will look at the log_errors and error_
Using CSS letter-spacing to space out titles
Randomly ordering data with MySQL with a random value column
It's possible to order data randomly with MySQL using ORDER BY RAND() or doing
Change element’s properties with CSS based on body id or class
This post shows a similar technique to the one used in my CSS Sprites – making one of the
Troubleshooting errors with Yahoo’s YUI Compressor
I use Yahoo’s YUI Compressor to minify Javascript
PHP command line syntax checking
The PHP CLI (command line interface) allows basic syntax checking of a PHP file. I’ll show the basic usage
jQuery JSON Ajax requests and caching
Last week I wrote how to load JSON data with jQuery, PHP and MySQL, noting
jQuery: show plain text in a password field and then make it a regular password field on focus – Part 2
Almost a year ago I showed how to have a password field show plain text with a default plain-text
Disable PHP in a directory with Apache .htaccess
If you have a directory which users can upload files into it’s a good idea for security reasons to