Re: Static Array vs MySQL query

From: Date: Sat, 29 Nov 2003 07:02:46 +0000
Subject: Re: Static Array vs MySQL query
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-171344@lists.php.net to get a copy of this message
- Edwin - wrote:
Hi, On 2003/11/29, at 8:10, John Nichel wrote:
Hi, I'm designing my site to use drop down menus, and am having php generate the content of the main manus, as well as the sub-menus. What I'm wondering is what the performance hit will be with putting all the menu variables into an array in a config file vs storing the info in a MySQL table, and retriving the data from there.
...[snipped]... Instead of "generating" the menu(s) each time, why not create a static [HTML] file which you can "call" by using file_get_contents() or something and just "insert" it where it's needed? Just an idea...
And a better idea it is. That's what I get for thinking I have to 'program' everything. Thanks! -- By-Tor.com It's all about the Rush http://www.by-tor.com

« previous php.general (#171344) next »