|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
So, the only solution is that library.
Right? OK. Another question: If I use PHP3 will I find a better solution or not? |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > CGI Execution from perl |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|