> I want something like:
>
> $status = Execute({inputfile => '*'});
> if ($status) {
> where if there's an error I go to my default /error.html file, which
> can then print out all the information I'd normally get using the
> ErrorDocument directive. Barring that an internal redirect would
> work. I can certainly get it to do a full redirect, but then I lose
> all the information about what the user was trying to get to and what
> the error was, unless I pass it along in the URL. And I don't send
> 404 errors back to search engines, which I would prefer to do.
>
$status = Execute({inputfile => '*', options =>
HTML::Embperl::optReturnError, errors => \@errors});
@errors will contain all error messages, if there are any
You could also set the optReturnError in your httpd.conf in EMBPERL_OPTIONS
and use the Apache standart ErrorDocument directive to trigger your error
document. See optReturnError in the docs for more infos
Gerald
-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice: +49 6133 925131
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]