diff --git a/billgen.php b/billgen.php index 621d082..4611eff 100644 --- a/billgen.php +++ b/billgen.php @@ -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); -?> \ No newline at end of file + $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); + +?>