Question : Using PHP to generate custom font text with shadow

I've created a PHP script to show this:

http://putter.com.mx/test.html

Problem is that as you can see the letters above the shadow cover up the part behind showing a sort of crappy result.

How can I fix it so it looks totally transparent?

Thanks
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
<?php
header('Content-type: image/png');

$im = imagecreatetruecolor(600, 55);

imagealphablending($im, false);
imagesavealpha($im, true);
imageantialias($im, true);
$transparent = imagecolorallocatealpha($im, 0, 0, 0, 127);

$grey = imagecolorallocatealpha($im, 34, 139, 34, 65);
$black = imagecolorallocatealpha($im, 34, 139, 34, 0);
imagefilledrectangle($im, 0, 0, 600, 55, $transparent);

$text = $_GET['t'];

$font = 'Complete in Him.ttf';

imagettftext($im, 40, 0, 30, 40, $grey, $font, $text);

imagettftext($im, 30, 0, 10, 23, $black, $font, $text);

imagepng($im);
imagedestroy($im);
?>

Answer : Using PHP to generate custom font text with shadow

These are the most basic 216 Web colors

http://html-color-codes.com/

Random Solutions  
 
programming4us programming4us