![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.php archiveimagecolorallocate - No Effect
From: afrinspray <afrinspray@gmail.com>
Date: Thu Apr 06 2006 - 19:53:36 CEST
I'm having trouble with the imagecolorallocate function. I'm creating
Any ideas? I'm running Freebsd.
Here's my code:
<?php
include_once('session.php');
$strCode = randomcode(6);
$bgdir = 'images/verification/';
$font = '/usr/X11R6/lib/X11/fonts/urwfonts-ttf/n021003l.ttf';
$size = rand(12, 16);
$textsize = imagettfbbox($size, $angle, $font, $strCode);
imagettftext($im, $size, $angle, $x, $y, $color, $font, $strCode);
header("Content-Type: image/png");
imagedestroy($im);
exit;
?>
Thanks,
|