Saturday, July 4th, 2009

Archive for January, 2009

How to create mirror images using GD

This class is useful to create mirror images using the GD Library. You just need to set the source path of the image (URL or local path) and the folder where the new image should be saved. If the latter is not specified the image will output without being saved. This is useful if you [...]

Read more

Stylish JavaScript Dialog (Alert, Confirm, Prompt) Boxes

The following list is useful if you need to replace the classical JavaScript message boxes (alert, confirm, prompt) with new and CSS customizable ones. JQuery and MooTools are some of the libraries used to make these excellent dialog boxes.

jQuery Alert Dialogs Plugin is meant to replace the basic functionality provided by the standard JavaScript [...]

Read more

Image Reflection with JQuery, MooTools and script.aculo.us

Reflection.js for jQuery is an improved version of the reflexion.js script rewritten for the JQuery library. It’s easy to integrate, as you only need 2 files to call: the (latest) JQuery Library file and the Reflexion JS File. You can add instantaneous reflexion effects to your images in modern browsers in less then 2KB.
Some [...]

Read more

Sanitize data to prevent SQL Injection Attacks

This is a simple function that sanitizes the data before sending it to MySQL. First it removes whitespaces from the beginning and ending of the string. If magic_quotes_gpc is enabled and the data has been already escaped we will apply stripslashes() to the data. This way the data won’t be escaped twice when mysql_real_escape_string() is [...]

Read more

How to download a remote image using GD or cURL

This a PHP Class useful if you need to download images from a remote location.

Read more