:
|
$zufallszahl = "".rand(0,9).rand(0,9).rand(0,9).rand(0,9).rand(0,9);
$fp = fopen ("zahl.txt", "w");
fwrite ($fp, $zufallszahl);
fclose($fp);
$im = @ImageCreate (50, 20)
or die ("Kann keinen neuen GD-Bild-Stream erzeugen");
$background_color = ImageColorAllocate ($im, 255, 255, 255);
$text_color = ImageColorAllocate ($im, 233, 14, 91);
ImageString ($im, 5, 5, 5, $zufallszahl, $text_color);
ImagePng($im,"thepng.png");
?>
Code:
Code-Feld:
|