Forum Moderators: coopster
What is the maximum size for a dynamic site written in PHP/MySQL before it starts putting too much strain on the server?
I plan on building a site with a db having 10-20 tables with the two main ones having 10,000 entries max. Would they support a 15/20K requests per day or should I think about using another language? If so which one: ASP.Net, Perl, JSP, Coldfusion?
If I know in advance some of the queries that will be run, could I pre-run them and store them 'somewhere' to make them easier/quicker for the server to deliver?
Is PHP5 better for large scale apps - I was thinking of using PHP4?
Do you know of any large ecommerce website running on PHP?
Cheers
from priidik
[public.yahoo.com...]
from amznVibe
[talks.php.net...]
[public.yahoo.com...]
[public.yahoo.com...]
thanks for the links.
On a 'different subject' I wondered what were the best practice of (PHP) code writing? Using stored procedures, caching (the other thread talk about caching), using includes for 'reusable' code?
What techniques do advanced PHP developers use to make the code leaner / faster and overall better?
How do you test your applications load on the server and how do you optimise the code to lower this load?
Cheers
Reuse code? Absolutely. I maintain functions, often in classes, that allow code reuse. Flexible and fast. Single point of maintenance, single point where I can monitor for issues/errors, ... lots of advantages to this practice.
I also believe one of the biggest balances in an optimal site is knowing and setting up the http server correctly. This is often overlooked and shouldn't be. PHP and Apache configured correctly for your site and it's applications is very important. So it's not always the code you want to focus on. If you aren't using certain extensions, don't enable them, don't load them. This goes for both PHP and Apache.