Re: [PHP] Static Array vs MySQL query

From: - Edwin - (copperwa11s_at_yahoo.co.jp)
Date: 11/29/03


Date: Sat, 29 Nov 2003 15:01:15 +0900
To: John Nichel <jnichel@by-tor.com>

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

--
- E -
__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/


Relevant Pages

  • Re: Shared vs Static Performance
    ... compiling PHP with primarily shared extensions rather than static? ... recent Yahoo presentation "PHP at Yahoo" highlighted that they built PHP ... I'd be curious if anyone has any experience in the performance difference ...
    (comp.lang.php)
  • Re: [PHP] needed Yahoo like window for db query.
    ... Use "View Source" on the Yahoo! ... It's all HTML, CSS, and JavaScript. ... Sent from the PHP - General mailing list archive at Nabble.com. ...
    (php.general)
  • Re: PHP vs. J2EE
    ... J2EE blows php away in all those areas. ... Do you think that characterization applies to Yahoo, Sourceforge ... (Wikipedia), though not nice, to dire ...
    (comp.lang.java.programmer)
  • using PHP on Yahoo
    ... I am re-writing a site in PHP that is currently on Yahoo and I have ... linux, and I assume, the Apache server. ... then the Apache server doesn't see the php code. ...
    (comp.lang.php)
  • RE: [PHP] cache control with javascript
    ... > actually a PHP file that produces the JavaScript that I need. ... Have a separate php script that generates the "whatever.js". ... Do You Yahoo!? ...
    (php.general)