Jim Carey
2002-10-10 21:57:51 UTC
Hi,
have been having problems passing parameters to a PHP script from a Perl script . I call the PHP script using (as an example):
$a=`/home/ozbcoz/http/testphp.php fred=testing`;
print "$a";
then I have a PHP script showing:
#!/usr/local/php/bin/php -q
<?
print "count=$argc<br>";
print "0=$argv[0]<br>";
print "1=$argv[1]<br>";
print "2=$argv[2]<br>";
phpinfo();
?>
the outout comes out as:
count=0
0=
1=
2=
plus the phpinfo bumpf - which shows argc as 0 and an empty array for argv
sny clues anyone ?
Jim Carey
have been having problems passing parameters to a PHP script from a Perl script . I call the PHP script using (as an example):
$a=`/home/ozbcoz/http/testphp.php fred=testing`;
print "$a";
then I have a PHP script showing:
#!/usr/local/php/bin/php -q
<?
print "count=$argc<br>";
print "0=$argv[0]<br>";
print "1=$argv[1]<br>";
print "2=$argv[2]<br>";
phpinfo();
?>
the outout comes out as:
count=0
0=
1=
2=
plus the phpinfo bumpf - which shows argc as 0 and an empty array for argv
sny clues anyone ?
Jim Carey