Global Data in PHP
Date: 09/09/04
(PHP Development) Keywords: php
I have a large ammount of global data that I need to access in a PHP script. Imagine the following file data.php:
But instead of three lines there are 100,000. If I include(data.php) in another script, does that mean the whole 100,000 line file will be read and parsed on every request, or will the content be kept in memory somehow? Is there some way that I can force it to stay in memory?
Source: http://www.livejournal.com/community/php_dev/47935.html