I have developed a pretty complex php script with well over 400 lines and many sql execs.
This script does basicly 2 things, search and insert data into sql databases.
So here is my delima:
This script takes quite a bit of time for the server to process and then send out the user, so in order to cut down on the time it takes to send i was wondering if there was a way to have PHP perform all the sql SELECT commands, output the html tables and all that other good stuff to the users browser, and then return to perform all the INSERT commands (which take a considerable ammount of time).
I was thinking a force_display() function might be able to do it... or possibly an include() that doesn't execute until after the parent code was parsed and sent.
I could make a pretty messy hack with javascript if needed but i would rather go the more elegant way (if possible).
If anyone has any ideas/solutions, please let me know.
-Ryan