Skip to content

Instantly share code, notes, and snippets.

@kunal732
Last active December 20, 2015 16:39
Show Gist options
  • Save kunal732/6163363 to your computer and use it in GitHub Desktop.
Save kunal732/6163363 to your computer and use it in GitHub Desktop.
<?php
$file = $_POST["filename"];
$im = imagecreatetruecolor(55, 30);
$white = imagecolorallocate($im, 255, 255, 255);
imagefilledrectangle($im,0,0,55,30,$white);
imagepng($im, 'img/'.$file);
imagedestroy($im);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment