Programming Experience and Examples

A class that was used to populate product data, the highlighted function actually pulls data from an Oracle 10g database first, passing the results into a MySQL query. The purpose of this was to first read the Item from Oracle, then read any corresponding Cross/Up Sell items in the Oracle database. These results were then passed into the MySQL query to extract web ready Item name and Item number. These final results were selected from an associative array and returned to place the appropriate images, item names and links. Each image was passed to an image processing script that used the ImageMagick library to resize the image and output a transparent PNG image to the browser.

Oracle Code Example

This next file is a simple file that takes 1 mandatory parameter, and two optional parameters. The mandatory is the filename or image name, the optional parameters are the width and height. It first checks to ensure that the imagemagick library has been loaded in PHP, then moves on to the image name, then the sizing parameters, performing simple strip_tags function to clean any html/programming attempts since these parameters come in from the URL.

ImageMagick Resize Script