You are here: Re: gather reply from POST « PHP « IT news, forums, messages
Re: gather reply from POST

Posted by Jason Barnett on 10/20/92 11:16

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация