kratsg Posted January 2, 2008 Share Posted January 2, 2008 Don't ask me where I saw this, it was like a few months ago... Never really wanted to try it... til now xD The idea is like this: A bunch of php code which pulls data off the server, as it loops through the data, it echos out what's already done so that you see it, but still loads the next one, and so on... This is not like normal php where you run through the whole script then echo everything... It runs through the loop once, echos the result, runs through the loop, echos the next set of results. It does not use AJAX (although you can use AJAX to produce similar effects.) I know that it used a special php function that would allow you to echo out data while the php is still running, but I can't find it? o_o Maybe some expert who loves messing around with this feature can help me here :-D ~Force Quote Link to comment https://forums.phpfreaks.com/topic/84048-how-do-you-run-php-code-while-echoing-out-some-output/ Share on other sites More sharing options...
PHP_PhREEEk Posted January 2, 2008 Share Posted January 2, 2008 I've seen a few script hacks that use output buffering to do this, but haven't seen one in awhile. I believe, though, that that is what you're looking for. PhREEEk Quote Link to comment https://forums.phpfreaks.com/topic/84048-how-do-you-run-php-code-while-echoing-out-some-output/#findComment-427830 Share on other sites More sharing options...
cooldude832 Posted January 2, 2008 Share Posted January 2, 2008 php can't control anything after the headers are closed and the browser presents it. Ajax would have to be used or a javascript function that update a that div/section Quote Link to comment https://forums.phpfreaks.com/topic/84048-how-do-you-run-php-code-while-echoing-out-some-output/#findComment-427831 Share on other sites More sharing options...
kratsg Posted January 2, 2008 Author Share Posted January 2, 2008 I've seen a few script hacks that use output buffering to do this, but haven't seen one in awhile. I believe, though, that that is what you're looking for. PhREEEk It probably is... It's almost like one of those PHP installation files you see... but without using AJAX. You know, the ones where it's like "Creating new table so-so-so...... DONE" and it keeps updating on the list. That's the problem, haven't seen it in a while... I could try do some googling later on and see if I come up with anything. Quote Link to comment https://forums.phpfreaks.com/topic/84048-how-do-you-run-php-code-while-echoing-out-some-output/#findComment-427956 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.