Re: load a URL and trap output
| From: | Red Wingate | Date: | Fri, 12 Mar 2004 16:20:24 +0000 |
| Subject: | Re: load a URL and trap output | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-180269@lists.php.net to get a copy of this message | ||
Best way would be filegetcontents() and implode the content
with "\n".
eg:
<?php
$temp = filegetcontents('http://www.somedomain.com');
$temp = implode ( "\n" , $temp );
echo $temp ;?> Chris Boget wrote:
How do I make my application load a URL and trap the returned data so that it never creates any browser output?Aside from the fopen() and fread() that was suggested by another person you can also use the ob_* functions. Chris