Unstoppable Domains โ€” AI Assistant

PHP: Displaying output while loading

SpaceshipSpaceship
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.
Unstoppable Domains โ€” AI StorefrontUnstoppable Domains โ€” AI Storefront
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
•••
CatchedCatched
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
NameMaxi - Your Domain Has Buyers
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back