Re: Multiline image creation?

From: Date: Thu, 22 Jun 2000 01:40:46 +0000
Subject: Re: Multiline image creation?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-2564@lists.php.net to get a copy of this message
On 21 Jun, K Old wrote: > Hello, > > I was wondering if there was some way that I could create multilined images > using the PHP image functions. > > For instance, I would like to take a paragraph that a users enters in a > textarea on a form and convert them to an image. Can this be done? If not > automatic does anyone know how I can parse a string and look for newline > characters, storing each line in an array and then after there are no more > new lines, it would print out all of the lines. > > Any ideas? > > Thanks, > Kevin The GD image functions should help here, and you may be able to use explode() to split the string on newlines and put in an array. Otherwise one of the ereg functions could be used to split the string. 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 (#2564) next »