note 21336 rejected from ref.exec by torben

From: Date: Thu, 09 May 2002 03:12:37 +0000
Subject: note 21336 rejected from ref.exec by torben
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-30366@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;

« previous php.notes (#30366) next »