curious.. if I run a CGI script from a PHP script, is it possible to set environmental variables for the CGI script.
this is the code -
<?
putENV("shopvars=mode=add;pcost=$raw[3];pcode=$raw[2];pname=$raw[1]");
putENV("shopname=domain.com");
$addcart=/home/domain-bin/secureshop.cgi;
print "$addcart";
?>
now it seems that the shopvars and shopname variables are not being passed properly because and error occurs when the script runs ... can this be done ? .. if so how ?
The script works perfectly in CGI (with perl coding of course).
I would perfer to run it in PHP tho.
Thanks in advance !!!
Mikee Dee