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 ...
exec("/usr/bin/perl /www/123/cgi-bin/verzeichnis/the_script.pl", $output, $err);
if (is_array($output)) {
print_r($output);
exit(0);
}
ergebnislos :(