NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page PHP: Displaying output while loading

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 02-06-2006, 08:56 AM THREAD STARTER               #1 (permalink)
NamePros Regular
 
gattoplano's Avatar
Join Date: Sep 2005
Location: Roma
Posts: 591
gattoplano will become famous soon enoughgattoplano will become famous soon enough
 



PHP: Displaying output while loading


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?
gattoplano is offline  
Old 02-06-2006, 10:35 AM   #2 (permalink)
NamePros Expert
 
Peter's Avatar
Join Date: Nov 2003
Location: Scotland
Posts: 5,069
Peter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond repute
 


Child Abuse Save The Children Save The Children Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009
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.
Peter is offline  
Old 02-06-2006, 10:57 AM   #3 (permalink)
Eating Pie
 
iNod's Avatar
Join Date: Nov 2004
Location: Canada
Posts: 2,272
iNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud of
 


Special Olympics AIDS/HIV Cystic Fibrosis Save The Children Baby Health Cystic Fibrosis
Originally Posted by filth@flexiwebhost
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.

????: NamePros.com http://www.namepros.com/programming/164995-php-displaying-output-while-loading.html
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
__________________
I feel old.
iNod is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tutorial: Getting started with PHP (The Basics) deadserious Webmaster Tutorials 60 11-17-2007 12:35 PM
Great Scripts for Sale With Resale Rights! Zeeble Scripts For Sale 20 01-04-2006 02:39 AM
Googlism - What does google think of you? deadserious The Break Room 55 12-15-2005 10:09 AM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 08:45 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger