Dynamically create an image gradient with PHP

Hello!

I need a PHP function that will return, when called, an image (PNG, GIF or JPG...).

The function will take 3 parameters:
StartColor (of gradient)
EndColor (of gradient)
Height (size of gradient)

I will use the function this way:
echo('<img src="' . filethatcontainsfunction.php?s=FFFFFF&e=000000&h=100 . '">');

I only need the function... Not the whole PHP page...
mychel_normandeauAsked:
Who is Participating?
 
ddrudikConnect With a Mentor Commented:
0
All Courses

From novice to tech pro — start learning today.