PDA

View Full Version : PHP Page Compilation Before Displaying


outline
03-21-2000, 08:32 PM
I am having a problem when layers are appearing on my pages and the content for the layers is loading dynamically from a database.[nbsp][nbsp]I would like the data for the page to be processed prior to the page displaying for the user so they do not see all of this layering junk.

Is there an option or method in PHP to having the kernel process and prepare the document entirely before showing it to the user, instead of showing them as it prepares it?

If not, I will probably end up performing some function that actually writes thousands of .html files.[nbsp][nbsp]That would be a real pain in the but so the solution above would be a much better fix for me.

Thanks!
Paul
------------------

Charles Capps
03-21-2000, 09:22 PM
Without knowing more about the application...

Perhaps instead of actually sending output to the browser as things are happening, you can assign the text to a variable, then print the variable at the end of the process?

Lon
04-06-2000, 02:49 PM
I do that on one of my sites. I build the entire page actually in a variable and then return the whole enchilada in one shot. I also believe that this is more efficient, but my page is pretty simple also.
------------------
Thanks.
Lon Baker
Chief Concept Engineer