Well I run game servers and such theres mysql and I wanted know if anyone could post a simple quary I would like try make a gd image for my site it be fun hehe..
Anyone have any ideas?
Anyone have any ideas?
AddType application/x-httpd-php .png
<?php
//visit http://www.iceteks.com/articles.php?act=view&article=textsig&p=2& for the code
header("Content-type: image/png");
//change this to the number of random quotes you want (for example if you had 15 quotes it would be $number = rand(1,15);
$number = rand(1,9);
//change your random quotes here
if($number==1)$string2 = "NEN IS SEXY!";
if($number==2)$string2 = "somebody set up us the bomb";
if($number==3)$string2 = "Resistance is futile";
if($number==4)$string2 = "NEN are cute";
if($number==5)$string2 = "H4X0R in thE yur PC1?!";
if($number==6)$string2 = "Dude w3re's my c4r?";
if($number==7)$string2 = "s0m3on3 st0l3 my mega hurtz!!";
if($number==8)$string2 = "move zig for great justice";
if($number==9)$string2 = "Rodents make the world cool";
//put your image name here (must be a png)
$im = imagecreatefrompng("yourfile.png");
//change your text color here ( must be the hex value) ex. 255,255,255 would be white
$color = imagecolorallocate($im, 255, 255, 255);
//change your X & y coordinates here to place the text on your image where you want it
//(these will center the text on a 400x100 image)
$px=120;
$py=30;
//no need to touch this unless you know what your doing
imagestring($im, 3, $px, $py, $string, $color);
imagestring($im, 2, $px, $py+12, $string2, $color);
imagepng($im);
imagedestroy($im);
?>Last edited by Kane Hart (2005-10-18 15:47:06)
Last edited by Kane Hart (2005-10-18 15:47:27)