Re: sending multiple variables to external PERL script for results
| From: | CC Zona | Date: | Wed, 26 Sep 2001 14:39:08 +0000 |
| Subject: | Re: sending multiple variables to external PERL script for results | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-68869@lists.php.net to get a copy of this message | ||
In article <DBEIKNMKGOBGNDHAAKGNOECFINAA.dave@hawk-systems.com>,
dave@hawk-systems.com (Dave Vanauken) wrote:
> normally this would easily be solved passing the command as
> $command="myscript.pl $name $phone $ccnum";
> $results=passthru($command);
> and parsing out the argv's in the perl script
>
> however, this breaks if $name happens to have a space in it (or other
> restricted
> or special characters like ' \ ; and so forth)
Check out <http://www.php.net/manual/en/function.escapeshellarg.php>
and
<http://www.php.net/manual/en/function.escapeshellcmd.php>
--
CC