Difference between revisions of "PHP include"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(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...")
(No difference)

Revision as of 19:28, 19 September 2016

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