PDA

View Full Version : Random Text PHP



STAUFFi
7th June 2013, 11:38
Hey
I hope you like it! :)

<?php

$text_random[1]='CHANGE ME';
$text_random[2]='CHANGE ME';
$text_random[3]='CHANGE ME';
$text_random[4]='CHANGE ME';
$text_random[5]='CHANGE ME';
$text_random[6]='CHANGE ME';

$random_text = rand(1,6);

$im = imagecreatefrompng("YOUR_PICTURE_FOR_THE_SCRIPT");
$white = imagecolorallocate($im, 255, 255, 255);

imagestring($im, 3, 300, 20, $text_random[$random_text], $white);
header("Content-type: image/png");
imagegif($im);
imagedestroy($im);
?>

kung foo man
7th June 2013, 12:01
How it will look like? :D

STAUFFi
7th June 2013, 12:30
http://xama.ch/teamspeak3/stauffi/banner.php