This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jun 19th, 2012  |  syntax: PHP  |  size: 0.51 KB  |  views: 23  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.         header("Content-Type: image/png");
  3.  
  4.         $dimensions = htmlentities(ltrim($_SERVER['PATH_INFO'], '/'));
  5.         $individual_dimensions = explode("x", $dimensions);
  6.  
  7.         $im = @imagecreate($individual_dimensions[0], $individual_dimensions[1])
  8.             or die("Cannot Initialize new GD image stream");
  9.         $background_color = imagecolorallocate($im, 195, 195, 195);
  10.         // $text_color = imagecolorallocate($im, 233, 14, 91);
  11.         // imagestring($im, 1, 5, 5,  "Placeholder image", $text_color);
  12.         imagepng($im);
  13.         imagedestroy($im);
  14. ?>
clone this paste RAW Paste Data