Re: Retrieving Content
| From: | Rodrigo de Oliveira Costa | Date: | Fri, 02 Jun 2006 17:30:41 +0000 |
| Subject: | Re: Retrieving Content | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-237300@lists.php.net to get a copy of this message | ||
I just discovered the problem I have to retrieve the output of the
site and not the url since its dynamic. Ca I do it like retrieve the
output of this url:
www.tryout.com/1/2/
And of course store it on a variable? How to do it? I founr the func
below but couldnt understand how to make it work with a url.
Thanks guys,
Rodrigo
ob_start();
include('file.php'); // Could be a site here? What should I do to
retrieve it from an url?
$output = ob_get_contents();
ob_end_clean();