Re: [PHP] Static Array vs MySQL query

From: John Nichel (jnichel_at_by-tor.com)
Date: 11/29/03


Date: Sat, 29 Nov 2003 01:02:46 -0600
To: PHP List <php-general@lists.php.net>


- 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


Relevant Pages

  • Re: CSS + xhtml static site - going dynamic?
    ... PHP then fills each content area. ... A better alternative is to have PHP pull the content off a database. ... management - menus and page linking need to be done by hand. ... So the second part is to formally build the linking structure into the ...
    (uk.net.web.authoring)
  • Re: CSS + xhtml static site - going dynamic?
    ... PHP then fills each content area. ... A better alternative is to have PHP pull the content off a database. ... management - menus and page linking need to be done by hand. ... So the second part is to formally build the linking structure into the ...
    (uk.net.web.authoring)
  • Re: Newbie requires help with screen res
    ... My website is designed using frontpage 2000 and php and I am using absolute ... but lousy if screen res is 1024 x 768 or higher. ... You can do it without CSS, but CSS gives you a lot more flexibility in designing your pages to automatically resize as needed. ...
    (comp.lang.php)
  • How can I change the DataUpdateable Field Property in Access?
    ... I am designing a web page using PHP, and I am trying to create a form that ... so I know my query works. ... problem, because when I anyalse my table, it returns the DataUpdateable ...
    (microsoft.public.access.gettingstarted)
  • Re: PHP coding Question
    ... I'm sure a PHP genius will know this one. ... I see lots of examples with this in Javascript, ... data from my PHP script via MySQL. ... Is there a way to create 3 linked drop down menus using PHP??? ...
    (comp.lang.php)