What's quicker; including another file or querying a MySQL database in PHP?

后端 未结 12 1701
闹比i
闹比i 2021-01-12 04:29

In PHP, which is quicker; using include(\'somefile.php\') or querying a MySQL database with a simple SELECT query to get the same information?

12条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-12 05:02

    If you expect the number of terms to become larger at a later date, you're better off using MySQL with a fulltext search field.

提交回复
热议问题