Tag Archives: once

關於 PHP 的 require 與 include (以及 *_once)

本來以為寫過了,後來找了找沒找到... 星期五的時候跟 Gasol 聊了一下,後來查資料後整理出來。(主要是 include 的文件說明) require 與 include 的差異在於找不到檔案時,include 會產生 warning,而 require 會產生 fatal error: The include construct will emit a warning if it cannot find a file; this is different behavior from require, which will emit a fatal … Continue reading

Posted in Computer, Murmuring, Programming | Tagged , , , , , , | Leave a comment