Home > Archive > PERL CGI Beginners > December 2005 > incorporer du php dans une page en perl-cgi ?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
incorporer du php dans une page en perl-cgi ?
|
|
| Ecocode 2005-12-03, 6:55 pm |
| | |
|
| Bonsoir eco,
Je ne parle pas Français trés bien.
--- ecocode <eco@ecocode.net> wrote:
> Bonsoir !
>
> Y a-t-il moyen d'incorporer le résultat d'une page php
> dans une page cgi-perl ?
"Can you incorporate the results of a PHP page in a Perl CGI script?"
> Je voudrais pouvoir incorporer la page de Wordpress dans
> une page cgi-pl, sans pour autant devoir utiliser un
> frame ...
"I would like to be able to incorporate a Wordpress page in a CGI page
without using frames".
Vous pouvez utiliser "PHP::Interpreter"
(http://search.cpan.org/dist/PHP-Interpreter/).
Par example:
use PHP::Interpreter;
our @var;
push @var, "hello";
push @var, "goodbye";
my $p = PHP::Interpreter->new;
$p->eval(q/
$perl = Perl::getInstance();
function bar() {
$value = $perl->getVariable('$main::var[0]');
return $value;
}
/;
print $p->bar(); # should print "hello"
Cheers,
Ovid
--
If this message is a response to a question on a mailing list, please send
follow up questions to the list.
Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/
| |
| Perl Hack 2005-12-03, 6:55 pm |
| <translation>
Hi!
Is there a way to incorporate the output of a php page in a cgi-perl
[script]/page?
I would like to incorporate a page from Wordpress in a cgi-perl
[script]/page, without having to use frames.
Thanks!
</translation>
Eco,
I thought I help English readers understand your question better....I'm a
perl/mason programmer who knows French, but I don't bother much with PHP,
since HTML::Mason eclipses PHP, in my opinion. I added the word in brackets
[script] since Perl/cgi is not placed on the same page as as HTML, like PHP..
Good luck Eco!
-ardeshir
+=+
http://ardershir.org
On 12/3/05, ecocode <eco@ecocode.net> wrote:
>
> Bonsoir !
>
> Y a-t-il moyen d'incorporer le résultat d'une page php dans une page
> cgi-perl ?
> Je voudrais pouvoir incorporer la page de Wordpress dans une page
> cgi-pl, sans pour autant devoir utiliser un frame ...
>
> Merci
> --
> Eco
> http://www.ecocode.net
> * Life is wonderful with Emacs and Perl *
>
>
>
--
# install everything that is outdated on my disk:
perl -MCPAN -e 'CPAN::Shell->install(CPAN::Shell->r)'
|
|
|
|
|