<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by derekpoh:
Have the following code to call a cgi (in C) :
system ('/opt/Netlife/eLink/samples/universal/cgi-bin/elpay.cgi $ip_tx_id $ip_car
d_type $ip_card_number $ip_exp_date $ip_amount',$ret_val);
In the cgi, only the /opt/Netlife/eLink/samples/universal/cgi-bin/elpay.cgi is pass over but not the rest of the parameters. Use argv and argc.
Any idea why is it happening this way.
THis was taken from a post on the PHP.net website from a user who had the same problem.
here's what they said:
If you are trying to parse a CGI script to your webserver which needs arguments, take a look to the virtual() function .. it took me long before i found out it existed...
It's used like this:
And that works excellent now for me
It would appear by that that you are using the wrong function for what you want.
These posts can be found by visiting php.net and following the quick ref link, find the function you have a question about.. read the user posts.
I've solved many problems from those posts.
Not to say that you can't get answers here. Because you can.
Hope this helps.
Low Cost Hosting and Web Development.