script

Smart Image Resizer (PHP): a simple way to create thumbnails and more on the fly - Shifting Pixel

A ridiculously easy-to-use PHP script for resizing images the smart way. One of the challenges that comes with maintaining a graphic-intensive website like Shifting Pixel is finding a way to get high quality images throughout the site with as little effort as possible. To tackle this, I developed the Smart Image Resizer and have been using it around the site for the past few months. I couldn’t be happier.

jQuery :random filter - Waldek Mastykarz

While working on a new JavaScript mockup I needed a way to obtain a random jQuery item. While I could use jQuery(“selector”).get(int) to get a random item, I wanted to have a cleaner way of doing that to keep my code clean. jQuery ships with great support for extensibility. You can not only extend jQuery with custom functions but filters as well. That is when I thought of the custom “:random” filter, just as you have the standard “:first”, “:last” and “:nth” filters.

An Alternative to Perl Shell Scripting With PHP

With the introduction of PHP version 4.2, PHP has started supporting a new SAPI (Server Application Programming Interface) called CLI (Command Line Interface). This facility was introduced to help developers create small shell application (scripts) with PHP, meaning that you can kiss Perl goodbye forever! In this tutorial I will show you how to use PHP's CLI feature to interpret shell scripts. I will assume that you have a fair understanding of PHP and that PHP is installed and working properly on your computer.

Import CSV files into Drupal CCK nodes | Grover Ponders

One of the projects I'm working on is to migrate a website from an old/outdated content management system I wrote 5+ years ago to something more modern - Drupal One of the challenges here is the listing type pages that provide rows of links to related websites. These links contain the link title, the URL (of course), and a brief description. The alternatives for moving this data was to either copy the rendered table into a single page node, or make use of the Content Construction Kit (CCK) to create custom nodes reflecting the data.

Subscribe to script