[thelist] Trapping output of php script?

Marek Kilimajer kilimajer at webglobe.sk
Wed Jul 23 04:57:49 CDT 2003


If you don't want the risk of messing up your global variables use
$output=file_get_contents('http://yourserver/YaBBindex.php');

Daniel Champion wrote:

> Hi Joel
> 
> Output buffering is your friend. Start here:
> 
> http://www.php.net/manual/en/ref.outcontrol.php
> 
> Look at ob_start() and ob_get_contents() - they will be able to cover your 
> needs.
> 
> HTH



More information about the thelist mailing list