Advertisement

07.04.2008 at 07:50AM PDT, ID: 23539543
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.9

PHP Functions Library vs large Class file - Which uses more resources? Proper practices question

Asked by web_ohh in PHP and Databases, PHP Scripting Language, Scripting Languages

Tags: ,

Hey everyone,

I have been developing a website in PHP for quite some time now, and im just wondering about some proper practices. I've always wondered if what i am doing is actually crippling the PHP engine/server in the backgorund.

So far I have files such as:
siteFunctions.php
photoFunctions.php
ajaxFunctions.php

..etc. These files are growing in size with many many functions on each, and they are included as needed on other php pages to access the appropriate functions.

As far as memory/execution time/server resources, is it good to include this many lines of code when the calling page is requested, or would a large class with all of them be better instead? How does it work as far as memory during execution?

Im thinking if i put them in a class, instantiate it, and then call the methods/functions, it might be better, but doesnt that just include the same amount of code anyways? How harmful is including functions etc in the page that I do not use for that particular request?

I know it may seem like a lot of things there, but any help is greatly appreciated.

Thanks!Start Free Trial
 
Loading Advertisement...
 
[+][-]07.04.2008 at 09:30AM PDT, ID: 21933883

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: PHP and Databases, PHP Scripting Language, Scripting Languages
Tags: PHP, IE/FF
Sign Up Now!
Solution Provided By: loki23
Participating Experts: 2
Solution Grade: B
 
 
[+][-]07.04.2008 at 09:47AM PDT, ID: 21933951

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.05.2008 at 08:05AM PDT, ID: 21937289

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628