New to both PHP & MySQL but learning quickly. Here's my hypothetical scenario: Medium to large web site with gobs of traffic. Almost all pages have the same standard navigation menus and footers.
Is it quicker for PHP to grab (query) the HTML code out of a MySQL DB and send the compiled pages to the webserver or is it quicker to use the INCLUDE() command, say...
<? include(navmenu.txt); ?>
It probably wouldn't make a difference for a small site but what about a site with hundreds of thousands or millions of hits a day?
It also appears that the REQUIRE(), FOPEN() and READFILE() would accomplish the same thing as the INCLUDE(). Is that so or are their fundamental differences I should be aware of? How about performance using these commands vs MySQL queries?
Is it quicker for PHP to grab (query) the HTML code out of a MySQL DB and send the compiled pages to the webserver or is it quicker to use the INCLUDE() command, say...
<? include(navmenu.txt); ?>
It probably wouldn't make a difference for a small site but what about a site with hundreds of thousands or millions of hits a day?
It also appears that the REQUIRE(), FOPEN() and READFILE() would accomplish the same thing as the INCLUDE(). Is that so or are their fundamental differences I should be aware of? How about performance using these commands vs MySQL queries?