logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Coding & Scripting Corner View previous topic :: View next topic
Reply to topic   Topic: PHP Maintenant
Author
Thog



Joined: 12 Feb 2007
Posts: 75
Location: Montreal

PostPosted: Wed 19 Dec '07 18:38    Post subject: PHP Maintenant Reply with quote

I have some maintenance code on all my sites. This runs automatically (if needed) after the script has finished processing. I like this ideas better then having a separate chron running.

Is it possible to get php to get apache to send the (finished sending data) and just keep processing in the background whatever needs to be processed instead of having the page not finished loading cause it's running some process in the background...
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7288
Location: Germany, Next to Hamburg

PostPosted: Wed 19 Dec '07 19:07    Post subject: Reply with quote

1) you should split your page into different parts. Like a footer / header / etc.
Than you can a) include the files in the page. Works only if only the content is different but the page layout is the same.
b) store the content and / or the footer / header in a database. Which is easier to maintain.
2) create static pages with cache so you can maintain and the pages won't loose the preformance.

just my 2 cents
Back to top


Reply to topic   Topic: PHP Maintenant View previous topic :: View next topic
Post new topic   Forum Index -> Coding & Scripting Corner