store array in a file?
| From: | jaxon | Date: | Sun, 15 Apr 2001 23:32:10 +0000 |
| Subject: | store array in a file? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-48666@lists.php.net to get a copy of this message | ||
Hey all, can someone make a recommendation here?
I want to keep site structural info pulled from a database in an array, and
store it in a flat file that can eliminate the database hit.
Then I'll just delete the file when structure changes, and regenerate it
with a call to a recreation script that does the necessary sql once.
So
- does this make sense?
- how to sore the array in a flat file
- any way to make the array global once loaded?
Thanks for any pointers!
cheers,
jaxon