Re: Images

From: Date: Thu, 25 May 2000 06:26:54 +0000
Subject: Re: Images
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-508@lists.php.net to get a copy of this message
On 25 May, Durrani, Mohamed Ameenuddin wrote: > 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); > > ?> There doesn't appear to be any code there to display the image? Cheers -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA

« previous php.general (#508) next »