Hi jaxon,

@ 7:32:10 PM on 4/15/2001, jaxon wrote:

...
> 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 you'll be hitting the disk too (really, either way), but I doubt
that's going to speed it up very much.

> 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?

No, I'm lost.

>  - how to sore the array in a flat file

One way is to implode() the data from an array into a single line
(separated by whatever you wish), then write the line to the file on
disk.

http://www.php.net/manual/en/function.implode.php

>  - any way to make the array global once loaded?

By using global?

http://www.php.net/manual/it/language.variables.scope.php

-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please, DO NOT carbon copy me on list replies.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to