the-botman Posted December 3, 2009 Share Posted December 3, 2009 Hi Guys .. can someone please tell me why this is not working [code<?php session_start(); $name = $_SESSION['name']; $_SESSION['image']; $name = strtoupper($name); header("Content-Type: image/gif"); header('content-disposition: attachment; filename="'.$_SESSION['image'].'.gif"'); $im = imagecreatefromgif($_SESSION['image'] . '.gif'); if(!$im){ die("IMAGE CREATION FAILED"); } $white = ImageColorAllocate($im, 255, 255, 255); $start_x = 81; $start_y = 255; $start_xx = 13; $start_yy = 237; Imagettftext($im, 15, 0, $start_x, $start_y, $white, 'arial.ttf', $name); Imagettftext($im, 15, 0, $start_xx, $start_yy, $white, 'arial.ttf', FROM); imagegif($im); ImageDestroy($im); } ?>] Thanks in advance Botman Link to comment https://forums.phpfreaks.com/topic/183914-quick-question/ Share on other sites More sharing options...
rajivgonsalves Posted December 3, 2009 Share Posted December 3, 2009 what is the error your getting if any ? Link to comment https://forums.phpfreaks.com/topic/183914-quick-question/#findComment-970895 Share on other sites More sharing options...
the-botman Posted December 3, 2009 Author Share Posted December 3, 2009 see i have the same code for my png files and it works fine but with gif it does not display the image at all no error msg just no image also Link to comment https://forums.phpfreaks.com/topic/183914-quick-question/#findComment-970902 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.