Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old October 1st, 2000, 05:07 PM
tpe tpe is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Location: Greece
Posts: 10 tpe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 38 sec
Reputation 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

Reply With Quote
  #2  
Old October 1st, 2000, 06:24 PM
JonLed JonLed is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2000
Location: Indiana
Posts: 614 JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 h 49 m 49 sec
Reputation Power: 9
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.

Reply With Quote
  #3  
Old October 2nd, 2000, 05:55 AM
tpe tpe is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Location: Greece
Posts: 10 tpe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 38 sec
Reputation 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?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > CGI Execution from perl


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway