Unstoppable Domains

PHP: Displaying output while loading

Spaceship Spaceship
Watch

gattoplano

Established Member
Impact
183
Hi,
I have a php script that requires something like 20-30 seconds to load, and it displays LOTS of results.

I would like to know if it's possible to display those results while loading them, and not all together when the page is fully loaded.

I was thinking to put them inside a session through the first script and to make a second script that, while the first one is loading all the results, takes them from the session and displays them.

What do you think about it?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
php doesnt wait for final execution before it outputs to the browser.

If this is happening for you then the chances are you are using output buffering or something like that.
 
0
•••
filth@flexiwebhost said:
php doesnt wait for final execution before it outputs to the browser.

If this is happening for you then the chances are you are using output buffering or something like that.


As he said, either your server/host sucks and you need a new one. OR you are using output buffering. Which can be changed in your PHP.INI config. (If you own the server/vps)


- Steve
 
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99
Appraise.net

We're social

Unstoppable Domains
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back