You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by "RAYtracer__ .:<DREAMWALKER>:." <ra...@mail.ru> on 2001/09/04 00:02:23 UTC
converting Embperl files to real perl (?)
03.09.2001 22:51
hello, Embperl!
is there a possibility to let Embperl convert an Embperl file to real
Perl file so that every webserver without Embperl installed can exec
it? what I mean is:
test.ep:
[* $scalar='text'; *]
some nice [+ $scalar +] here =)
and here is more [+ $scalar +] ...
converted to test.pl:
#!/usr/local/bin/perl
$scalar='text';
print"some nice $scalar here =)\n";
print"and here is more $scalar ...\n";
...if I can't convert Embperl code to Perl, is it possible to
upload a script (perl module?) to a webserver so that my virtual host
will be able to exec Embperl (without editing any httpd.conf)? I need
it because I don't own a webserver, i want to use a free webspace
provider (port5), where only mod_perl is installed =(
thanx
bye =)
...and may the tux be with you!
-----------------------------
Ivan G. Shevchenko
RAYtracer__ .:<DREAMWALKER>:.
ANARCHOPOLIS [] XSDI
raytracer__@mail.ru
http://xlnc.port5.com/
81800129
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: converting Embperl files to real perl (?)
Posted by "Luiz Fernando B. Ribeiro" <li...@athome.pro.br>.
Olá RAYtracer__,
Reply:
RD> ...if I can't convert Embperl code to Perl, is it possible to
RD> upload a script (perl module?) to a webserver so that my virtual host
RD> will be able to exec Embperl (without editing any httpd.conf)? I need
RD> it because I don't own a webserver, i want to use a free webspace
RD> provider (port5), where only mod_perl is installed =(
I've been using Embperl in a virtual server with success, of course
with a performance penalty. You have to use the embpcgi.pl script that
comes with Embperl and add the following lines in a .htaccess file:
<Files *.epl>
Action text/html /cgi-bin/embpcgi.pl
</files>
AddType text/html .epl
You you have to upload a compiled version of Embperl to your ISP,
unless it lets you use the compiler. In my case my server is running
RedHat and I compiled Embperl on a local box and uploaded all the
files into my home folder. Edit the embpcgi.pl and add the place you
uploaded the files to @INC
BEGIN { unshift @INC, '/home/luiz/perl_libs'}
or under Perl 5.6:
use libs '/home/luiz/perl_libs';
Make a test .epl file and fire it!
Good luck,
Luiz Fernando B. Ribeiro
----------------------------
At Home - Design e Internet
contato@athome.pro.br
athome@uol.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: converting Embperl files to real perl (?)
Posted by Gerald Richter <ri...@ecos.de>.
>
> is there a possibility to let Embperl convert an Embperl file to real
> Perl file so that every webserver without Embperl installed can exec
> it?
No. Embperl 2.0 generates an Perl programm internaly and a tree structure of
the page. That makes it fast. It isn't possible simply to convert this a one
Perl programm, without haveing half of Embperl inside of this program (and
haveing to reimplement lots of C in Perl, which would slow down the whole
thing)
>
> ...if I can't convert Embperl code to Perl, is it possible to
> upload a script (perl module?) to a webserver so that my virtual host
> will be able to exec Embperl (without editing any httpd.conf)? I need
> it because I don't own a webserver, i want to use a free webspace
> provider (port5), where only mod_perl is installed =(
>
If you have mod_perl installed, you can put the EMbperl configuration in a
.htaccess file instead of the httpd.conf. You still have to install Embperl,
but you can do this in your home directory and add it to Perl's search path.
If you don't have mod_perl, you can use Embperl as CGI (which is slower) or
in the current CVS version and the comming 1.3.4/2.0b4 release you can use
Embperl together with FastCGI, for a non Perl environment
Gerald
-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 925131
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org