PHP - Partial Page Load

SpaceshipSpaceship
NamecheapNamecheap
Namecheap AuctionsNamecheap Auctions
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
Close
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
Close
I will. Thanks :)
 
0
Close
0
Close
Thanks Eric, I will check that.
 
0
Close
One thing you need to do is send at least 256 space characters before the flush.

PHP:
echo(str_repeat(' ',256));
flush();
 
0
Close
Thanks a lot guys. It works very well :)
 
0
Close
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Filters for activity feeds
Your news feed, Latest activity, and the activity tab on profiles now have filter buttons: All, Posts, Quick replies, and Other. Your...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back