Grads On The Fly Function

This tutorial is a supplement to the Grads on the fly written by Sally. It uses the same script to create functions that make the coding a bit easier, however, it also requires that your document be a php document and the code is written in php. You must have access to PHP on your server for this script to work.
I have written a page of functions and put them in a zip file OTFfunctions.php which you must place in the same directory as the OTF-Grad-Maker.php file from Sally's site. Using this file as an include on your page, it creates a shortcut for you when writing the OTF codes. For example, the codes:

<img src=OTF-Grad-Maker.php?d=h&h=50&r=n&s=0,0,0&e=30,144,255 width=100 height=50>

Become:

<?;
include('OTFfunctions.php');
roll(0, 0, 0, 30, 144, 255, 100, 50);
?>

Where roll is the type of function being called; the first 3 numbers are the start color; the second 3 numbers are the end color; followed by the width and height of the gradient.
The different functions available are as follows:

tube(10, 10, 10, 255, 55, 255, 50, 50);
vert(10, 10, 10, 255, 55, 255, 50, 50);
vert(255, 55, 255, 10, 10, 10, 50, 50);
horz(255, 55, 255, 10, 10, 10, 50, 50);
horz(10, 10, 10, 255, 55, 255, 50, 50);
roll(10, 10, 10, 255, 55, 255, 50, 50);

These codes produce the following images (and are included in the zip file).
If you familiar with php coding, you can use php loops to create a shortcut. Below are some examples of php loops using these functions.

then copy (Ctrl-C) & paste (Ctrl-V)

then copy (Ctrl-C) & paste (Ctrl-V)

then copy (Ctrl-C) & paste (Ctrl-V)

then copy (Ctrl-C) & paste (Ctrl-V)

then copy (Ctrl-C) & paste (Ctrl-V)

then copy (Ctrl-C) & paste (Ctrl-V)