Skip to content

Commit

Permalink
Merge pull request #3 from BhawaniGarg/patch-2
Browse files Browse the repository at this point in the history
Hey thanks again:smile:
LGTM  :+1:
  • Loading branch information
gautamkrishnar committed Feb 10, 2016
2 parents 628917c + a957fee commit c1e55a1
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions billgen.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@
$clr = imagecolorallocate($img, 0, 0, 0);
$font_path = 'arialbd.ttf';
imagettftext($img, 18, 0, 30, 100, $clr,$font_path, $text);
imagejpeg($img);
imagedestroy($img);
?>
$billpath = rand(1,100000);
$filename = ".jpg";
$path = "/home2/USERNAME/public_html/uploads/BeLikeBill_" . $billpath . "_" . $filename;
imagejpeg($img,$path);
header("Location: http://www.domain.com/uploads/BeLikeBill_" . $billpath . "_" . $filename);
//imagedestroy($img);

?>

0 comments on commit c1e55a1

Please sign in to comment.