Re: Control structures

2005-01-21 Thread Jay
On Fri, 21 Jan 2005 18:03:29 -0500, Jay <[EMAIL PROTECTED]> wrote: > On Fri, 21 Jan 2005 17:56:17 -0500, Jay <[EMAIL PROTECTED]> wrote: > > On Fri, 21 Jan 2005 19:20:44 +, Mark Martin <[EMAIL PROTECTED]> wrote: > > > Hi , > > > I'm getting confused as to whether I need a last, next, redo or all

Control structures

2005-01-21 Thread Mark Martin
Hi , I'm getting confused as to whether I need a last, next, redo or all of the above : foreach $file_item ( @file_items ) { ($file_item_code,$file_item_description) = split /,/,$file_item ; $count ++; $sth->execute($file_item_code); while ( @fetch = $sth->fetchrow ) {

Re: embedding dynamic images in html output

2005-01-21 Thread Shaun Fryer
> >Yeah, though then I have to worry about cleaning up the temp directory, > >and I'd like to avoid unnecessary writes to the hard drive (to avoid > >directory damage possibilities, energy use, fragmentation, etc). It > >logically makes sense to just send these things out as they're generated.

Re: embedding dynamic images in html output

2005-01-21 Thread Wiggins d Anconia
> 11:03am, Chad Gard wrote: > > > > > On Jan 21, 2005, at 10:22 AM, Sean Davis wrote: > > > >> You could also have your main script generate the images all at once (at > >> the same time as you are generating the HTML), put the graphics in temp > >> files, and then put the appropriate URLs in th

Re: embedding dynamic images in html output

2005-01-21 Thread Paul Archer
11:03am, Chad Gard wrote: On Jan 21, 2005, at 10:22 AM, Sean Davis wrote: You could also have your main script generate the images all at once (at the same time as you are generating the HTML), put the graphics in temp files, and then put the appropriate URLs in the img tags. This will eliminat

Re: embedding dynamic images in html output

2005-01-21 Thread Sean Davis
On Jan 21, 2005, at 11:03 AM, Chad Gard wrote: On Jan 21, 2005, at 10:22 AM, Sean Davis wrote: Do these need to all be generated on-the-fly? Or is there a way to create them first (one time a day, for example) and serve them as static images? They need to be generated on-the-fly, as the data cha

Re: embedding dynamic images in html output

2005-01-21 Thread Chad Gard
On Jan 21, 2005, at 10:22 AM, Sean Davis wrote: Do these need to all be generated on-the-fly? Or is there a way to create them first (one time a day, for example) and serve them as static images? They need to be generated on-the-fly, as the data changes continually. You could also have your mai

RE: embedding dynamic images in html output

2005-01-21 Thread Bob Showalter
Chad Gard wrote: > and I really don't want to write images to files on disk. I think you should reconsider. This is really your best bet. Web clients and servers are really optimized for this kind of thing. You should write all the images out to disk files accessible through URL's and then emit IM

Re: embedding dynamic images in html output

2005-01-21 Thread Chris Devers
On Fri, 21 Jan 2005, Chad Gard wrote: > That's what I'll do if I can't make it work the way I want. However, > I'd like to be able to avoid the overhead of additional queries, and > additional browser connections to the web server. I already get all > the data I need for other parts of the pa

Re: embedding dynamic images in html output

2005-01-21 Thread Sean Davis
On Jan 21, 2005, at 10:05 AM, Chad Gard wrote: On Jan 21, 2005, at 9:56 AM, David Dorward wrote: How about passing it the data it needs to make a suitable database request? That's what I'll do if I can't make it work the way I want. However, I'd like to be able to avoid the overhead of additional

Re: embedding dynamic images in html output

2005-01-21 Thread Chad Gard
On Jan 21, 2005, at 9:56 AM, David Dorward wrote: How about passing it the data it needs to make a suitable database request? That's what I'll do if I can't make it work the way I want. However, I'd like to be able to avoid the overhead of additional queries, and additional browser connections t

Re: embedding dynamic images in html output

2005-01-21 Thread David Dorward
On Fri, Jan 21, 2005 at 09:43:40AM -0500, Chad Gard wrote: > I have a CGI that generates a page from data in a database. I want to > include several graphs of data in the page. > > I can use GD::Graph to create the images. But, the data sets are > rather large/awkward to try to send off to ano

embedding dynamic images in html output

2005-01-21 Thread Chad Gard
Hello, all. I have a CGI that generates a page from data in a database. I want to include several graphs of data in the page. I can use GD::Graph to create the images. But, the data sets are rather large/awkward to try to send off to another CGI that I could use with the IMG tag, and I really

Re: Insecure dependency in glob ... with -T switch

2005-01-21 Thread Scott R. Godin
Zentara wrote: On Mon, 17 Jan 2005 14:54:58 -0600, [EMAIL PROTECTED] (David Gilden) wrote: Taint mode can be circumvented pretty easily, but you need to be careful. Read perldoc perlsec. You probably either need to change $ENV{PATH} to '.' , or the cwd. You may need to give it a full pathname. Or