-Ed
-Ed
EDTALKING
-Ryan
lolz my bad
![]()
EDTALKING
Try Pixel2life
lol yer
so i got this yer:
it wont work for me i get a weird error:PHP Code:<?php
header('Content-type: image/png');
$text = $_GET['text'];
$im = imagecreatefrompng ("radio_statsbg.gif");
$color = imagecolorallocate($im, 0, 0, 0);
$font = 'BMRECEIPT.TTF';
$fontsize = 6;
$size = imagettfbbox($fontsize, 0, $font, $text); //calculate the pixel of the string
$dx = (imagesx($im)) - (abs($size[2]-$size[0])) - 20; //calculate the location to start the text
imagettftext($im, $fontsize, 0, $dx, 13, $color, $font, $text);
imagepng($im);
imagedestroy($im);
?>
I ALWAYS Get it for the imagecreate thing and it getting on my nerves coz its correct i belive<br /><b>Fatal error</b>: Call to undefined function: imagecreatefrompng() in <b>/home/anyhabbo/public_html/scripts/text.php</b> on line <b>4</b><br />
Last edited by :Edzy; 18-02-2007 at 06:21 PM.
EDTALKING
$im = imagecreatefrompng("radio_statsbg.gif");
Make sure the extensions are correct.
“two players, two sides.
one is light, one is dark.”
- John Locke
still wont work
its just the
$im = imagecreatefrompng ("");
on my host but why :S ?
EDTALKING
Do you actually have
radio_statsbg.gif
in the same folder as the php file?
“two players, two sides.
one is light, one is dark.”
- John Locke
yes![]()
EDTALKING
Want to hide these adverts? Register an account for free!