perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gunnar Wolf <gw...@gwolf.org>
Subject Re: help with embperl and php
Date Mon, 07 May 2007 17:23:54 GMT
Alicia Amadoz dijo [Mon, May 07, 2007 at 04:39:51PM +0200]:
> I'm new to Embperl and I have the following system installed,
> 
> Apache/2.2.3 (Unix) Embperl/2.2.0 PHP/5.1.6 mod_perl/2.0.2 Perl/v5.8.8 
> 
> I already have some tools built in PHP/JavaScript/HTML and
> now I need to add more tools in PERL. So, I have tried Embperl under
> mod_perl but I only get PERL/HTML working together in the same file with
> Embperl. 
> 
> I would like to know if there is any type of configuration that allows
> working with Perl within Embperl under mod_perl and at the same time,
> the server interprets PHP and Javascript in the same file.

    «If you're looking for trouble
     you've come to the right place!»

No, really... If I get you right, you want your Embperl system to
generate pages which will be parsed later by the PHP interpreter - Or
the other way around. It is not impossible - While writing this
paragraph, I played with some toy idea suggestions on how to do
this. But please, don't. Perl and PHP are both very capable
languages. But Embperl's scope of action is tremendously close to
PHP's. And although theoretically possible, there is very little to
gain from such a setup.

Of course, both PHP and Embperl are able to generate Javascript (which
is, all in all, not a language executed on the server, as both are,
but on the client - Generated Javascript is just a data stream, just
like HTML is).

If your question was only "can my PHP-serving Apache also serve
Embperl documents?", the answer would be a simple "yes". But when you
added "in the same file", I got all sweaty.

Greetings,

-- 
Gunnar Wolf - gwolf@gwolf.org - (+52-55)5623-0154 / 1451-2244
PGP key 1024D/8BB527AF 2001-10-23
Fingerprint: 0C79 D2D1 2C4E 9CE4 5973  F800 D80E F35A 8BB5 27AF

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


Mime
View raw message