PHP, IIS Image not displaying on browser -


The following code is not displaying images from IIS 6 / PHP 5.2.9. It works fine with XAMPP (PHP 5.3)

  $ img = @imagecreate (200, 200); $ Background_color = imagecolorallocate ($ IMG, 0, 0, 0); $ Text_color = imagecolorallocate ($ IMG, 233, 14, 91); Imagestring ($ img, 12, 60, 90, 'image here', $ text_color); Header ('Last-Modified:' Date ('D, DM YH: I: S')); Header ('content-type: image / jpg'); Header ('content-dispute: inline; file name = empty_jp.jpg'); Ob_start (); Imagejpeg ($ img); Imagedestroy ($ img); $ Jpeg = ob_get_contents (); Ob_end_clean (); Header ('Content-Length:'. Strlen ($ jpeg)); Echo $ JPEG; Go out;  

More likely than GI is not properly installed for IIS

Turn on and check for errors while calling the script.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -