perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <>
Subject Re: Generating images on-the-fly (newbie question) / embperl object
Date Thu, 10 Oct 2002 17:59:34 GMT
> As it sits, my seperate .cgi is working... but I can't handle errors
> nicely, other then calling HTML::Embperl::Execute('error.html').
> However, when I do that then all the EmbperlObject stuff gets ignored.
> See the problem?  As soon as you set up another file extension using
> standard Embperl, then you can't switch back, other then using the
> Location: header to redirect.

In this case you really need to do something like Andrew described, or put
at the top of your base.epl

[$if $fdat{image} $][- Execute('*') ; exit ; -][$endif$]

make sure to have no spaces outside of the braces before the exit. Of course
you can use another condition to determinate if it is an image


Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:         Voice:    +49 6133 925131
WWW:      Fax:      +49 6133 925152

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message