Re: store array in a file?

From: Date: Mon, 16 Apr 2001 00:21:31 +0000
Subject: Re: store array in a file?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-48681@lists.php.net to get a copy of this message
The info pulled from a Database (Mysql) is already stored in an array, then you can move the pointer back and forward when you need it. You can send it to the first "record" and re read it several times... with mysql_data_seek ($result, 0); goes to the first record again. JuanCaBo ----- Original Message ----- From: "jaxon" <jaxon@salamander.net> To: <php-general@lists.php.net> Sent: Sunday, April 15, 2001 6:32 PM Subject: [PHP] store array in a file? > > 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 > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#48681) next »