PHP include

From Wiki @ Karl Jones dot com
Revision as of 19:28, 19 September 2016 by Karl Jones (Talk | contribs) (Created page with "In PHP, the '''include''' and '''require''' keywords copies the contents of one file into other file. This is useful for making a file (such as the header section of a we...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

In PHP, the include and require keywords copies the contents of one file into other file.

This is useful for making a file (such as the header section of a web page) which is included into many web pages.

include is optional: if the specified file does not exist, PHP ignores the include.

require is not optional: if the specified file does not exist, PHP generates an error.

See also

External links