On Saturday 15 June 2002 00:57, Batch wrote:
> I am trying to exec a perl script from my php code.
>
> Here is what I have:
>
> exec("perlpath/perlscript.pl $var", $array)
Using exec() like this would put the exit code of your perl script into $array
-- which isn't what you want. Use shell_exec() or backticks:
$array = `perlpath/perlscript.pl $var`;
Note that $array is in fact a string and not an array!
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
You have all the characteristics of a popular politician: a horrible voice,
bad breeding, and a vulgar manner.
-- Aristophanes
*/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php