Although I'm like 90% sure (only digitals confidence in it is making me second guess myself) #2 won't help you because even having the PHP parse last will still prevent the page from displaying before the execution is complete..
Hey, you're absolutely right!
Normally your script would have to terminate before any output is sent to the browser via HTTP.
However, you can cause your server to flush the php output to HTTP prematurely.
This is done using the flush() function. You can read more on it here:
http://www.php.net/flush
If you are also buffering the php output in the script using, ob_start(), then you will have to call ob_flush() before calling flush().
flush() also does not seem to work on Win/Apache. It does on Linux/Apache though.
Also, IE needs to receive 256 bytes via http before rendering content.
Heres how you could do it:
[php]
echo 'This is some content I want shown immediately';
// echo a hundred dummy line breaks (\r\n).
// This causes IE to start rendering received http text
for($i = 0; $i < 100; $i++) {
echo "\r\n";
}
ob_flush(); // if you have used ob_start() to buffer php
flush(); // send output buffer (seperate from ob_start() buffer) to http
// now do the rss stuff
echo retrieve_rss_feeds();
[/php]