PHP reading content memory problem
A PHP file, the content is probably a json (exported from the database, to avoid frequent access to the database) array format, the content size of this file is 200K, and the memory of the server is 1G If so, then when 6 users simultaneously access the file
require_once("json.php");.........json_decode other codes
, will the memory become jammed?
How to calculate? 6 * 200 k = 1.2 M, which is just a little bit of memory.
require_once() loading, if the file has already been loaded, it will not be loaded in subsequent requests.