Hi Everyone,

I have a perl program which I would like to display its
results in PHP. I have read PHP book and the solution
is to convert the perl program which is not easy. I have
tried a simple example but it is not working. The perl script

#! /usr/bin/perl -w
print "hello world"

and the Php script is

$result = exec("/var/www/hello.pl",$dirout);
foreach($dirout as $line)
   echo "$line\n";


Reply via email to