Re: load the PHP script last on the page

From: Date: Thu, 31 Jul 2003 18:16:43 +0000
Subject: Re: load the PHP script last on the page
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-157781@lists.php.net to get a copy of this message
DougD wrote:
I have a page with a particular PHP section that takes quite a time to load. Is there a way I can delay that script to run after everything else has loaded. I suppose it may need to use Javascript????
You could use register_shutdown_function() to execute the code, providing you don't need any output sent to the browser. Do some testing as to whether PHP still waits for that function to finish or not, but I don't think it does. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ PHP|Architect: A magazine for PHP Professionals – www.phparch.com

« previous php.general (#157781) next »