Thread: Learning PHP
View Single Post
Old 10-25-2016, 04:33 AM  
just a punk
So fuckin' bored
 
just a punk's Avatar
 
Industry Role:
Join Date: Jun 2003
Posts: 32,381
1. No answer here. It's like if you ask "how to make my home secure?" There could be a ton of recommendations, but no universal solution.

2. When PHP engine generates a page, it usually does a lot of things. Performs SQL queries, access various files and simple executes the code. Caching is a method do avoid it. Once the page was generated, it's saved as a simple HTML file. So next time when someone will try to open it, he will see the previously generated static version - the PHP code will not be executed, SQL queries will not be performed etc.
__________________
Obey the Cowgod
just a punk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote