RE: [PHP] Faster: Includes or DB Queries??
| From: | John Holmes | Date: | Mon, 22 Jul 2002 03:26:03 +0000 |
| Subject: | RE: [PHP] Faster: Includes or DB Queries?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-108802@lists.php.net to get a copy of this message | ||
> Is there much of a difference in speed or efficiency between
INCLUDEing
> files in a script or loading data from a database? I'm building a
dynamic
> menu system for a website and not sure if it would be faster to store
> button
> data in a DB or just do it with Included files.
Includes are faster overall. If you already have a database connection
open for other things, then there won't be as much of an overhead for
using the database.
---John Holmes...