Images

From: Date: Thu, 25 May 2000 06:25:31 +0000
Subject: Images
Groups: php.general 
Request: Send a blank email to php-general+get-507@lists.php.net to get a copy of this message
Hi... I am using Linux server with Apache web server and MySQL, PHP4 The following code for creating Gif images is not working... The screen is blank... Any help... Durrani <?php function LoadGif($imgname){ $im = @imagecreatefromgif($imgname); /* Attempt to open */ if ($im == "") { /* See if it failed */ $im = ImageCreate(150,30); /* Create a blank image */ $bgc = ImageColorAllocate($im,255,255,255); $tc = ImageColorAllocate($im,0,0,0); ImageFilledRectangle($im,0,0,150,30,$bgc); ImageString($im,1,5,5,"Error loading $imgname",$tc); /* Output an errmsg */ } return $im; } $url = "http://202.54.39.194/images/logo_n.gif"; LoadGif($url); ?>

« previous php.general (#507) next »