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

    Join Date
    Aug 2000
    Location
    Singapore
    Posts
    21
    Rep Power
    0
    Most of the CGI I do is to send values to the CGI and display the HTML.

    Now I want it not to display HTML but return some text.

    Example if others call my CGI from their CGI,

    E.g. $value= http://myweb/cgi-bin/mycgi.cgi?...
    They $value is a returned string or something.

    Thanks in advance.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Posts
    73
    Rep Power
    14
    Use backticks
    @returnValues = `command`;
    command here is Unix (or other OS) commands, and not a call like you do with the browser

    ------------------
    http://new.123finder.com/ - Helps you find cool domains for FREE & Registers it for only $14.95/yr
    http://www.guideclick.com/ - Qualified webmaster resources (affiliate programs, web design, tips)

    ------
    Son
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Aug 2000
    Location
    Indiana
    Posts
    614
    Rep Power
    16
    First of all, I don't think 123finder.com's solution is the one you're looking for at all, but I could be wrong.

    Second, do you want the string to return, or the actually result html?
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Singapore
    Posts
    21
    Rep Power
    0
    Yes JonLed, 123finder.com's answer is not I am looking for. I am not asking about back ticks. Unless
    $var=`http:mywebcgi-binmycgi.cgi?...` will work as in $var will get a string.

    In my mycgi.cgi I print a "content: textn" before I print that string.

    I am asking if a php or a form can call a cgi and get values for them?

    e.g. in html form
    <input type=text name=var value=http:mywebcgi-binmycgi.cgi?...

    or in a php script

    $var=`http:mywebcgi-binmycgi.cgi?...`


    Thanks all for replying.
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Aug 2000
    Location
    Indiana
    Posts
    614
    Rep Power
    16

IMN logo majestic logo threadwatch logo seochat tools logo