RE: [PHP] load the PHP script last on the page
| From: | Chris W. Parker | Date: | Thu, 31 Jul 2003 18:23:03 +0000 |
| Subject: | RE: [PHP] load the PHP script last on the page | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-157784@lists.php.net to get a copy of this message | ||
DougD <mailto:info@bigfresh.com>
on Thursday, July 31, 2003 11:18 AM said:
> If it were possible I want the include to occur after the rest of the
> page is loaded.
Maybe instead of including the file that does the processing and waiting
forever for it to finish, you might consider setting up that same page
as a cron job and have it create another page on your sever that you can
quickly read/parse into your web page.
You could have the cron job run every 1/2/3/4/5/10/15 minutes depending
on how accurate it needs to be. Each time the page is loaded by the
browser the server will grab the latest version and display it.
hth,
Chris.