Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 01-10-2005, 03:52 PM   #1
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
call perl cgi script from php

i need to call a cgi script that resides on a different server from within a php script but dont know how. i couldn find a suitable function in the php man nor any howto on the web. i guess it should be easy so if u know plz tell me
thanks a lot
Old 01-11-2005, 09:09 AM   #2
Senior Member
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
Try (need PHP >= 4.3.0, if not try fopen() family functions) :

PHP Code:
$cgi "";

Last edited by Cedrik; 01-11-2005 at 09:10 AM.
Old 01-14-2005, 09:23 AM   #3
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Original Poster
Rep: Reputation: 145Reputation: 145
thanks for your reply,

i got another recommendation to use lynx to post to the cgi.
but i've changed plans anyway and switched to perl and call the other cgi thru LWP.
this works and supports ssl.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
CMS Perl/CGI/PHP script ANU Programming 2 10-25-2006 11:11 AM
CGI/Perl script problems. Randvegeta Linux - Software 8 12-30-2004 01:24 AM
/perl/php/cgi/mysql dramous Linux - Newbie 0 10-08-2004 06:11 PM
How to Call a C program from Perl CGI Script anoop_cn Programming 1 05-11-2004 05:37 PM
PHP verses CGI Perl te_conway Linux - Security 2 03-28-2002 08:51 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:15 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration