5 tips to execute your PHP code more faster
1) use echo because it is faster than print.
2) Use require() instead of require_once() where possible
3) str_replace is faster than preg_replace.
4)“else if” statements are faster than case/switch
5) $row['id'] is 8 times faster than $row[id]
A PHP script will be served at least 2-10 times slower than a static HTML page by Apache. Try to use more static HTML pages and fewer scripts.
Posts you may like:
Delete records within a specific Range from MySQL table
If you want to delete a range of records from MySQL table then you can …
Quick ways to improve your site’s position in Google
Page ranking by Google depends on multiple factors. Actually this is a trade secrets of …
php pagination code example using MySql database
Here is a working code for pagination using PHP and MySql database. Its is tested …
How to include php headers on html site
PHP is a powerful language for web development, it have many in built functions. Here …
Small online SEO tools for websites
Here is some small online tools for analyzing a website. This tools includes Blacklist checker, …