using ImageTTFText in a page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This script work on it's own but fails when emeded in another php file. All 
I want to do is create a function and call it passing a text parameter. Also 
is it possbile to output the image to a file insert the url into a <img> 
tag?

<?php

header("Content-type: image/png");
$im = imagecreate (800, 30);
$black = ImageColorAllocate ($im, 255, 255, 255);
$blue = ImageColorAllocate ($im, 75, 104, 177);
ImageTTFText ($im, 20, 0, 10, 20, $blue, "Font - TrueType - Square 721 
BT.ttf",
              "BLUEFLY");
ImageGif ($im);
ImageDestroy ($im);
?>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux