You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

12 line
353 B

  1. <?php
  2. dl("gd.so");
  3. header("Content-type: image/png");
  4. $s = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
  5. $im = imagecreate(strlen($s) * 9, 12);
  6. $bg = imagecolorallocate($im, 255, 255, 255);
  7. $fg = imagecolorallocate($im, 0, 0, 0);
  8. imagestring($im, 5, 0, -3, $s, $fg);
  9. imagepng($im);
  10. imagedestroy($im);
  11. ?>