header ('Content-type: image/png');
$filename = 'http://www.sprinkles.me.uk/story.php';
$handle = fopen('http://www.sprinkles.me.uk/story.php', 'r');
$filename = 'story.php';
$story = fread($handle, filesize($filename));
$story = preg_replace ('//', '\n', $story);
$background = ImageCreate (800, 65) or die ('Cannot Create image');
$back = ImageColorAllocate ($background, 255, 255, 255);
imagecolortransparent ($background, $back);
$txt_color = ImageColorAllocate ($background, 0, 0, 0);
ImageTTFText ($background, 9, 0, 0, 14, $txt_color, 'arial.ttf',
'$story');
ImagePng ($background);
(,
Fri 17 Sep 2004, 14:55,
archived)
$filename = 'http://www.sprinkles.me.uk/story.php';
$handle = fopen('http://www.sprinkles.me.uk/story.php', 'r');
$filename = 'story.php';
$story = fread($handle, filesize($filename));
$story = preg_replace ('//', '\n', $story);
$background = ImageCreate (800, 65) or die ('Cannot Create image');
$back = ImageColorAllocate ($background, 255, 255, 255);
imagecolortransparent ($background, $back);
$txt_color = ImageColorAllocate ($background, 0, 0, 0);
ImageTTFText ($background, 9, 0, 0, 14, $txt_color, 'arial.ttf',
'$story');
ImagePng ($background);