#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Posts
    4
    Rep Power
    0
    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.
  2. #2
  3. No Profile Picture
    Robert_J_Sherman
    Guest
    Devshed Newbie (0 - 499 posts)
    <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.
    [/quote]

    THis was taken from a post on the PHP.net website from a user who had the same problem.

    here's what they said:

    <QUOTED>
    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:
    <pre><?php</pre>
    <pre>virtual("/cgi-bin/lastuser.cgi?argument</pre>
    <pre>?></pre>
    And that works excellent now for me
    </QUOTED>

    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.

    ------------------
    SnR Graphics,
    Low Cost Hosting and Web Development.

Similar Threads

  1. call up cgi in html with javascript
    By wolsch in forum JavaScript Development
    Replies: 1
    Last Post: February 16th, 2004, 03:45 PM
  2. Trying to call cgi script onunload via image.src
    By oscarf in forum HTML Programming
    Replies: 3
    Last Post: February 6th, 2004, 10:18 PM
  3. stat system call?!
    By sheilamurni in forum C Programming
    Replies: 1
    Last Post: January 23rd, 2004, 10:29 AM
  4. PHP Gameserver-booking system
    By Skaven in forum Project Help Wanted
    Replies: 0
    Last Post: January 3rd, 2004, 07:20 PM
  5. Wierd CGI Header Error
    By seth_h in forum Perl Programming
    Replies: 1
    Last Post: December 19th, 2003, 06:31 PM

IMN logo majestic logo threadwatch logo seochat tools logo