note 21336 added to ref.exec
| From: | me at jcornelius dot com | Date: | Thu, 09 May 2002 00:31:02 +0000 |
| Subject: | note 21336 added to ref.exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-30360@lists.php.net to get a copy of this message | ||
I am trying to get a single value back from a perl script and it is
just not working. I know it is something simple, I'm just not seeing it.
The PHP file has no errors. It just does not populate $inpass with the
output from the perl script. The perl script runs fine from the shell,
passing the proper value back to <STDOUT>
This is in the PHP file
$inpass = exec("perl /home/site/cgi-bin/crypt.pl $pass");
The Perl file returns a value like this:
my $PASS = $ARGV[0];
my $out = &DBCrypt::encrypt($PASS);
print $out;
--
http://www.php.net/manual/en/ref.exec.php
http://master.php.net/manage/user-notes.php?action=edit+21336
http://master.php.net/manage/user-notes.php?action=delete+21336
http://master.php.net/manage/user-notes.php?action=reject+21336