Also, if anyone has any recommendations regarding how I should construct/design my CMS backend-wise, I'd be more than happy if you could post them
Thanks in advance // vigge
Moderator: General Moderators
Ideally, you would want to seperate your dissimilar functions as much as possible. Here is an example I can think of,What I want to know is, does separating different function "types" (content, post, visitor, statistic handling, etc.) into a number of files and then including most of them even when just a few of them are needed affect performance and speed in PHP? I'm very concerned about this subject, as I want my CMS to be as optimized as possible
Code: Select all
if (file_exists("session_functions.php"))
{
// it exists
// appear as an available module
}Code: Select all
<perl getsnippet('snippets/php_login.txt); >Glad to.Jcart wrote:I believe Roja mentioned something along these lines about one of his webgames so hopefully he will be able to shed some lightWhat I want to know is, does separating different function "types" (content, post, visitor, statistic handling, etc.) into a number of files and then including most of them even when just a few of them are needed affect performance and speed in PHP? I'm very concerned about this subject, as I want my CMS to be as optimized as possible
Hmm...since when? I know you can install a compile cache like APC or Zend but what version of PHP started doing this?onion2k wrote:PHP caches a copy of the compiled script until one of the files it accesses changes, so you could include loads of completely unnecessary code and it'd make no difference to the execution speed after the first time it's run.
I'll echo Buddha's question.. what version of PHP does that?onion2k wrote:PHP caches a copy of the compiled script until one of the files it accesses changes, so you could include loads of completely unnecessary code and it'd make no difference to the execution speed after the first time it's run.
Hope that answers some of your questions.some web page wrote: PHP is a very fast parser, it can parse 100,000 lines of code on an 800mhz machine in around 3 seconds
Might want to check out JMeter if your using shared hosting. CAUTION: You can whack the heck out of a shared server with JMeter. Shared servers are at load or over load so the there's no need to produce a traffic load. You just need to measure you scripts performance. Test accordingly.vigge89 wrote:I'll have a look at Apache ab ...