RE: [PHP] Whats more efficient? (Conclusion)

From: Date: Wed, 22 Oct 2003 03:40:44 +0000
Subject: RE: [PHP] Whats more efficient? (Conclusion)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-167056@lists.php.net to get a copy of this message
What I find easy to do, Is have the top, left in a file, say we call it header.php And have the bottom html in a page called footer.php Both pages mainly contain html exept if php is required. Many sites / database the top, left is html code and never changes, There is no need to place this inside php, there is no need to slow down the engine Advantages of this is that it is kind of like a template, where you could change the header, and it take effect site wide, as well as been able to change the view by having multiple headers for people to choose their own. Hope that made sense -- Chris Kay (CK) Eleet Internet Services M: 0415 451 372 P: 02 4620 5076 F: 02 4620 7008 E: chris@eleet.com.au -----Original Message----- From: Ryan A [mailto:ryan@coinpass.com] Sent: Wednesday, 22 October 2003 1:28 PM To: Chris Shiflett Cc: php-general@lists.php.net Subject: Re: [PHP] Whats more efficient? (Conclusion) Hey, thanks for replying. /* ...but you can still overcome this with some good server-side caching (for example, is it necessary to dynamically generate a response for every request if the data isn't very volatile?). */ My main pages are basically querying the databases for hosting plans depending on what the client chooses.... what do you suggest? and any urls for reading up on caching? Thanks, -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#167056) next »