Re: PHP and HTTP requests
| From: | John W. Holmes | Date: | Mon, 19 Apr 2004 18:50:14 +0000 |
| Subject: | Re: PHP and HTTP requests | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-183842@lists.php.net to get a copy of this message | ||
From: "Aleksei Ivanov" <aivanov@hot.ee>
> I realize it's a stupid question but I need a simple solution.. I'd
> like to get contence from script-generated webpage (I send a
> regquest via get or post method to a page and it generates a
> response page - how do get that page as a string? Get the
> source of the page). It's obvious that it cannot be shown with
> file functions. Only solution I was mentioned vas CURL package
> but I'd like to solve this with standard functions. Is it possible?
$page =
file_get_contents('http://www.domain.com/page.php?param1=value1¶m2=value
2');
---John Holmes...