Thread PHP in Perl nutzen (9 answers)
Opened by terx` at 2006-10-03 23:24

renee
 2006-10-08 00:31
#28658 #28658
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Hast Du es mal so probiert:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
use PHP;

my $php_file = '/path/to/file.php';

open my $fh,'<',$php_file or die $!;
my $content = do{local $/;<$fh>};
close $fh;

my $return;
PHP::options( stdout => sub {$return = $_[0];});
PHP::eval($content);
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/

View full thread PHP in Perl nutzen