Re: Anyone have any experience with the EXEC function?

From: Date: Fri, 14 Jun 2002 17:03:11 +0000
Subject: Re: Anyone have any experience with the EXEC function?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-102238@lists.php.net to get a copy of this message
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 */

« previous php.general (#102238) next »