Re: Objects within an Embperl page

2002-03-26 Thread Earwig
On Tue, 26 Mar 2002, Andrew O'Brien wrote: > > [$if ($fd=0) $] Sorry, that's a typo, it is indeed ($fd!=0) in my page. Could that comparison affect it? The file descriptor not truly being closed would make some sense... when it sees a false success, it is always with the $fd value that was s

Generating images with EmbPerl

2002-03-26 Thread Leeland Heins
I have a need to generate images (graphs created with Perl modules like GDGraph). I don't want to store the images anywhere, I want the code to generate and send the images. I've done this many times in CGI, just by sending out the right header for "Content-type: image/gif" or whatever type of im

RE: Generating images with EmbPerl

2002-03-26 Thread Michael Stevens
I've found the most convenient option is to simply not use Embperl at all. You're not taking advantage of any of the templating features of embperl, it makes your life harder in the end, not easier. The way I do it is to write a mod_perl content handler. Annoyingly, a quick look doesn't find any

Re: Generating images with EmbPerl

2002-03-26 Thread Axel Beckert - ecos gmbh
Hi! On Tue, Mar 26, 2002 at 05:31:07AM -0600, Leeland Heins wrote: > Should I use the meta method for setting the http header, or > $http_headers_out? Both should work. > Do I need to set optEarlyHttpHeader? Nope. But $escmode = 0 is useful. :-) > What file handle can I > print or write the

Re: Generating images with EmbPerl

2002-03-26 Thread Kee Hinckley
At 5:53 PM +0100 3/26/02, Axel Beckert - ecos gmbh wrote: >But in general it works. E.g. the following little Embperl script >works fine: > >[- $req_rec->content_type('image/gif'); # Sending the right header >$escmode = 0; # No HTML escaping >$image = 'embperl_pb2.gif'; >open(IMG,'<',$

Fwd: Re: Generating images with EmbPerl

2002-03-26 Thread Leeland Heins
Danke! I was able to take your example and graft it together with an example for using GD::Graph and do exactly what I wanted. On Tuesday 26 March 2002 10:53 am, you wrote: > Hi! > > On Tue, Mar 26, 2002 at 05:31:07AM -0600, Leeland Heins wrote: > > Should I use the meta method for setting the h