$data = file_get_contents('http://www.site.com/file.php');
Don't think it would work though because you would lock up the process eventually leading to timeout. You'd want to pass a parameter identifying when to just output and when to read itself.
The above would not finish until the file.php finished processing but can't finishing processing until the request finished but the request can't finish until the code finished processing ... on and on