perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <rich...@ecos.de>
Subject RE: Executing a cgi script
Date Tue, 20 Dec 2005 20:53:22 GMT
> 
> I'm on Perl 5.8.7, Embperl 2.1.0, Mod_perl 2.0.2 on Apache 
> 2.0.55 on Solaris. 
> 
> I'm trying to Execute a cgi script from an epl page, but the 
> cgi script doesn't get executed (rather, it's read as a text 
> file.) Is there an option to make this possible?
> 
> 1) a.cgi submits data to b.epl
> 
> 2) b.epl has only the following lines.
> <h1>Reading files ... Please wait. </h1> [$ hidden $]
> [- Execute ("a.cgi") -] 
> 

The Execute will be handled in the same request, so your browser will only
see the result, when a.cgi has finished and that's not what you want to.

Instead you to to tell your browser to make a new request to a.cgi, so I
normaly use:

<h1>Reading files ... Please wait. </h1> 
<meta http-equiv="refresh" content="0:[+ $fullurl +]"> 

Note that $fullurl must include the a.cgi and all parameter you normaly
would pass with [$ hidden $] appended after a '?'

Gerald





 
** Virus checked by BB-5000 Mailfilter ** 


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message