Re: gather reply from POST

From: Date: Wed, 18 May 2005 20:11:32 +0000
Subject: Re: gather reply from POST
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-215528@lists.php.net to get a copy of this message
Jeremy Reynolds wrote:
I received this useful bit of code for storing a page into a variable instead of loading it as an include. But how can I modify this to submit some parameters to a page and collect the returned page / HTML into a variable?? Jeremy -------------- <?php /** DocumentB.php */ $text = file_get_contents('DocumentA.php'); echo $text; ?>
You'll probably want to use cURL for this task, although Rasmus' posttohost might also give you something useful. http://php.net/manual/en/ref.curl.php http://www.php-faq.com/postToHost.html

« previous php.general (#215528) next »