Unstoppable Domains

PHP - Partial Page Load

Spaceship Spaceship
Watch

Ik

Quality //VIP Member
Impact
8
Not sure if this is possible with PHP.

I have a page that executes a large MySQL query, so it takes time to load and display on the browser. I'm fine with that, but all I need is to display a message on the page saying "Fetching data..." or whatever.

Note: I don't want to use AJAX to load the actual data

Any solution?

I know it's possible with ColdFusion by asking the server to send back small HTML chunks to the browser instead of sending the whole page at once.

Thank you
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Sounds like a job for Eric :) Drop him a pm :)
 
0
•••
I will. Thanks :)
 
0
•••
0
•••
Thanks Eric, I will check that.
 
0
•••
One thing you need to do is send at least 256 space characters before the flush.

PHP:
echo(str_repeat(' ',256));
flush();
 
0
•••
Thanks a lot guys. It works very well :)
 
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