now.. it is up to 30 queries/sec avg .... up to how many queries can I go?!
those are mainly queries that add logs ..
and what would be the best way to spread the logs?
I mean.. should I only keep the today's log in one table.. and at each day, transfert yesterday's log into another table? cuz it logs about 200k things per day..
so when stats page loads.. it takes quite a while ;-(
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.
Then you just need to pass your date to the function.
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions.
Consider email address RFCs:
Look at HTML5 form input element (with type=email) regex pattern: