Re: Posting variables to a cgi without a form

From: Date: Mon, 05 Nov 2001 09:23:10 +0000
Subject: Re: Posting variables to a cgi without a form
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-73453@lists.php.net to get a copy of this message
$content = join('', file("http://www.somehost.com/cgi-bin/script.cgi?param1=value1&param2=value" )); now $content have the output, feel free to parse it out! "Joseph Blythe" <joe.blythe@binarylogic.com.au> wrote in message news:NFBBINOGELMOJAGFEJNCOEAGCFAA.joe.blythe@binarylogic.com.au... > Hey all, > > What is the best wat to post some variables to a cgi file and capture the > output so I may strip out all the html tags, I want to replace a forms > action with a php script which will mimic a forms post method, allowing me > to better format the response, as at the moment the cgi is written in c and > creates a whole html page which i need to strip back down to text before I > can include it in my site. > > I know about the string and filesysytem functions, sort of looking for a > quick example of passing the variables to the cgi and capturing the output. > > Any help much appreciated, > > > Regards, > > > Joseph > >

« previous php.general (#73453) next »