Ok everyone, I'm just going to start with the basics. For some reason this does not work:
<?PHP
header('Content-type: image/png');
@mysql_connect ('localhost','sois_query','PW')
or die ("cant connect to mysql server");
@mysql_select_db ('sois_tpc')
or die ("could not select database");
$namerec = $name;
// create, send headers, output & destroy
$im = imageCreateFromPNG("sig.png") ;
$namecolor = imageColorAllocate($im, 0, 255, 100);
imageString($im, 5, 15, 5, $namerec, $namecolor);
imageString($im, 3, 120, 31, $rank, $namecolor);
imageString($im, 3, 120, 46, $ppg, $namecolor);
imageString($im, 3, 120, 61, $ypg, $namecolor);
imageString($im, 3, 120, 76, $status, $namecolor);
imagePNG($im, "$name.png");
imageDestroy($im);
?>
It gives error message:
The image “http://www.sois.com/tpc/sigs/sig.php?name=test” cannot be displayed, because it contains errors.
It does create the file in the directory. For example, if the link is:
http://www.sois.com/tpc/sigs/sig.php?name=test
It makes the file test.png in the directory.
Lets see if starting at the beginning will make everything easier to understand.