Is it still in the same directory as the font you're calling?  Try
removing all spaces from the filename, then modifying it in your PHP code,
calling the full path (or relative path).  If none of this seems to be the
case, make sure your PHP script isn't trying to output anything before this
code.

   If you're using it as a Turing test (CAPTCHA-like stuff) then don't
include() or require() it, but rather do <IMG SRC="file.php">.

On 4/23/07, Ross <[EMAIL PROTECTED]> wrote:

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




--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107

Reply via email to