| Junior Member with 15 posts. | | | |
Quote: |
Originally Posted by hambone I am trying to call PERL script via PHP (system) and system is failing to pass variables correctly. Here's kind of what I've done:
<?PHP
$data=$_POST;
$cmd="/usr/bin/perl /local/get.pl \"$data[url]\" \"$data[subject]\" > /dev/null @";
system("$cmd");
?>
PERL file is in right directory and PHP is called by form post method.
Please offer suggestions - THANKS! |
which part the variable didn't pass thru? the PHP to shell, or the Perl part? |