Thread Perlscript in PHP einbinden (17 answers)
Opened by Gast at 2007-10-30 20:40

Asterix
 2007-11-04 16:07
#101834 #101834
User since
2007-11-03
9 Artikel
BenutzerIn
[default_avatar]
renee+2007-11-04 12:39:33--
Das hier funktioniert bei mir:[html]<html>
<body>
<h2>Test</h2>
<?php

exec( "perl test.cgi", $ausgabe );
print_r( $ausgabe );

?>
</body>
</html>[/html]

statt print_r( $ausgabe ); kannst Du auch

[php]
$string = implode( "\n", $ausgabe );
echo $string;[/php]

machen. Dann bekommst Du keinen "Dump", sondern die Ausgabe als String...


Hab das so gemacht ...
Code: (dl )
1
2
3
4
5
exec("/usr/bin/perl /www/123/cgi-bin/verzeichnis/the_script.pl", $output, $err);
if (is_array($output)) {
print_r($output);
exit(0);
}

ergebnislos :(

View full thread Perlscript in PHP einbinden