#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    Greece
    Posts
    10
    Rep Power
    0
    Hallo,
    I have a (small?) problem. I want to grab the output of a C++ cgi in order to parse it from PHP. My problem is on the perl side:
    I need to run the CGI and then store it's out in a variable. How can I run the cgi?
    Obsiously system() and exec() are not for me, since I need to execute the program from the browser (since it does a lot of DB stuff). I already read about the www-lib (or something like that) but I do not have it installed on my server (Linux + Apache) and I cannot install it too.
    Any ideas?

    Thanks
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Aug 2000
    Location
    Indiana
    Posts
    614
    Rep Power
    16
    You can install www-lib in your individual account. Just unzip the .pm file(s) into the directory you're perl scrit's in. then in the perl script go:

    push(@INC,".");

    Then you should be able to use it just as if it was installed on the server.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    Greece
    Posts
    10
    Rep Power
    0
    So, the only solution is that library.
    Right?

    OK. Another question: If I use PHP3 will I find a better solution or not?

IMN logo majestic logo threadwatch logo seochat tools logo