/ Published in: PHP
Put contents in a file called for example "button.php". instead of using filename.png in the img tag, use button.php?text=buttontext
Expand |
Embed | Plain Text
$string = $_GET['text']; $im = imagecreatefrompng("images/button.png"); $color = imagecolorallocate($im, 255, 255, 255); $py = 9; $fontSize = 1; imagestring($im, fontSize, $px, $py, $string, $color); imagepng($im); imagedestroy($im);
You need to login to post a comment.
