Awkwardsaw
11-25-2009, 09:48 PM
here is my code:
<?php
$b = file_get_contents("Theive_RSC.txt");
$array = explode(";", $b);
header("Content-type: image/png");
function create(){
$im = imagecreate(275, 60);
$bg = imagecolorallocate($im, 138, 138, 138);
$textcolor = imagecolorallocate($im, 255, 0, 0);
imagestring($im, 3, 0, 0, "Awkward Thiever!", $textcolor);
imagestring($im, 3, 0, 15, "Total sleeps: " . $array[0], $textcolor);
imagestring($im, 3, 0, 30, "Total Fights: " . $array[1], $textcolor);
imagestring($im, 3, 0, 45, "Total PickPockets: " . $array[2], $textcolor);
imagepng($im);
imagedestroy($im);
}
create();
?>
and the image:
http://akwardsaw.hostoi.com/Create_Sig_RSC.php
the "array" values should be a string, and they should have actual values, since the value in the .txt is:
13;84;221
it is also chmod 777
what do :(
<?php
$b = file_get_contents("Theive_RSC.txt");
$array = explode(";", $b);
header("Content-type: image/png");
function create(){
$im = imagecreate(275, 60);
$bg = imagecolorallocate($im, 138, 138, 138);
$textcolor = imagecolorallocate($im, 255, 0, 0);
imagestring($im, 3, 0, 0, "Awkward Thiever!", $textcolor);
imagestring($im, 3, 0, 15, "Total sleeps: " . $array[0], $textcolor);
imagestring($im, 3, 0, 30, "Total Fights: " . $array[1], $textcolor);
imagestring($im, 3, 0, 45, "Total PickPockets: " . $array[2], $textcolor);
imagepng($im);
imagedestroy($im);
}
create();
?>
and the image:
http://akwardsaw.hostoi.com/Create_Sig_RSC.php
the "array" values should be a string, and they should have actual values, since the value in the .txt is:
13;84;221
it is also chmod 777
what do :(