laborspy
06-17-2005, 05:43 PM
I have a large script that runs 58 commands at once. As a result the page takes forever to load. Is there anyway to display some of the results while the script is running?
|
Click to See Complete Forum and Search --> : echo while running? laborspy 06-17-2005, 05:43 PM I have a large script that runs 58 commands at once. As a result the page takes forever to load. Is there anyway to display some of the results while the script is running? BuzzLY 06-17-2005, 05:46 PM PHP is a server-side script. It is basically building your HTML page. Once the HTML is done, it will then send it to your client. You might consider breaking up your function into different pages, if it's that important to display information before the rest of the data is calculated. Drakla 06-17-2005, 06:12 PM You can try flushing after the output. IE doesn't display until it gets a certain amount of text, so you can shunt out your data, then follow it by a 1k HTML comment full of random gibberish, then flush. Obviously this isn't the nicest solution in the world, but if the script's just for you during development it could be good for you. The Chancer 06-22-2005, 05:30 AM IE needs 255 chars before it flushes... try using spaces.... laborspy 06-22-2005, 10:45 PM any examples? Weedpacket 06-23-2005, 04:11 AM Originally posted by laborspy any examples? Sure: planetsim 06-23-2005, 09:40 AM weedpacket wouldnt the PHP BBcode tags work better ? Since we need to highlight to PHP Code there. Also is this your first actual proper helping post weed :evilgrin: JoeBrewer 06-23-2005, 05:25 PM Originally posted by planetsim Also is this your first actual proper helping post weed :evilgrin: Are you saying that 1 proper helping post in 9883 posts is bad? Brew PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved. |