Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $fp=file_get_contents("data.txt");
- $fp++;
- $stream=fopen("data.txt", "w");
- fwrite($stream, $fp);
- fclose($stream);
- $img=imageCreateTrueColor(500, 125);
- $color=imageColorAllocate($img, rand(1, 255), rand(1, 255), rand(1, 255));
- imagefilledrectangle($img, 0, 0, 500, 125, $color);
- $color=imageColorAllocate($img, 0, 0, 0);
- imageTTFtext($img, 15, 0, 10, 20, $color, "/membri/miriamc/kaileen.ttf", "Questa è la prova schiacciante che sono una gran pheegona.");
- imageTTFtext($img, 15, 0, 10, 40, $color, "/membri/miriamc/kaileen.ttf", "E che so usare le librerie GD di php.");
- imageTTFtext($img, 15, 0, 10, 60, $color, "/membri/miriamc/kaileen.ttf", "E che non riesco ad impostare il charset giusto.");
- imageTTFtext($img, 15, 0, 10, 80, $color, "/membri/miriamc/kaileen.ttf", "E che non ho un cazzo da fare.");
- imageTTFtext($img, 15, 0, 10, 100, $color, "/membri/miriamc/kaileen.ttf", "E che la mia firma e' stata visualizzata $fp volte.");
- imageTTFtext($img,
- imageTTFtext($img, 15, 0, 10, 120, $color, "/membri/miriamc/kaileen.ttf", "Èggià.");
- header('Content-Type: image/png');
- imagePng($img);
- imagedestroy($img);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement