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
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php