I have this script that was generated form the convertfolder.php
script found on hotscripts.com. This is supposed to allow you to
remove many of the images from your host and just call this script
to rebuild them.
Usage:
<img src="images.php?sm56yellow">
<?
if (!isset($image))
$image = "";
switch($image)
{
case "sm56yellow":
sm56yellow();
break;
case "sm56yel":
sm56yel();
break;
}
function sm56yellow()
{
header("Content-type: image/png")
header("Content-length: 170");
echo base64_decode(
"iVBORw0KGgoAAAANSUhEUgAAABAAAAAWCAMAAAD+dOxOAAAAB3".
"RJTUUH0gkQEysKRu4=KzQAAAAJcEhZcwAACxIAAAsSAdLdfvwA".
"AAAEZ0FNQQAAsY8L/GEFAAAACVBMVEUAAAA=ADMz//8AqsC1Rg".
"AAACRJREFUeNpjYMAAjIwMTExQBGRjEcAAEAkIArKxCFBDy/Bx".
"GAA=mWYA0RUizBUAAAAASUVORK5CYII=".
"");
}
function sm56yel()
{
header("Content-type: image/png");
header("Content-length: 170");
echo base64_decode(
"iVBORw0KGgoAAAANSUhEUgAAABAAAAAWCAMAAAD+dOxOAAAAB3".
"RJTUUH0gkQEysKRu4rNAAAAAlwSFlzAAALEgAACxIB0t1+/AAA".
"AARnQU1BAACxjwv8YQUAAAAJUExURQAAAAAzM///AKrAtUYAAA".
"AkSURBVHjaY2DAAIyMDExMUARkYxHAABAJCAKysQhQQ8vwcRgA".
"mWYA0RUizBUAAAAASUVORK5CYII=".
"");
}
?>
Now, all I'm getting is a red 'X', no image. What could I be doing
wrong to cause this?
Note: In the preview of this message, there is an extra space in
some of the base64 encoded values in the php code shown
above