include, include_once, require or require_once?

前端 未结 8 1192
误落风尘
误落风尘 2020-11-27 17:21

I have PHP file where I have defined the server access variables as well as the mysql_connect and mysql_select_db, as this functions are regularly

8条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-27 17:38

    You should use include_once() if you're including it more than once on a page.

提交回复
热议问题