I have search for a script for writing text into an image and so far I've got this

PHP Code: 
<?php
header 
("Content-type: image/gif");
$string "your text";
// try changing this as well
$font 4;
$width imagefontwidth($font) * strlen($string) ;
$height imagefontheight($font) ;
$im imagecreatefromgif("link-to-image");
$x 120;
$y 4;
$backgroundColor imagecolorallocate ($im255255255);
$textColor imagecolorallocate ($im00,0);
imagestring ($im$font$x$y,  $string$textColor);
imagegif($im);
?>
However I don't know who to change the string $string externally.

That is if I execute it like this

Code: 
text-image.php?t=image in test
I should the text "image in test" in the image.

Anyone can help me out?

sorry if I've not used the correct terms to explain my problem
Snell Reviewed by Snell on . [PHP] Get value from external I have search for a script for writing text into an image and so far I've got this <?php header ("Content-type: image/gif"); $string = "your text"; // try changing this as well $font = 4; $width = imagefontwidth($font) * strlen($string) ; $height = imagefontheight($font) ; $im = imagecreatefromgif("link-to-image"); Rating: 5