+ 3

What is the usage of include,require, require_once,header?

I just saw usage of include and require. But don't see header and require_once.

30th Nov 2017, 5:11 AM
Nyi Nyi Myat
Nyi Nyi Myat - avatar
1 Answer
+ 4
header has a special work, it's not like include, require and require_once it add response headers and send to client(be sure use it before sending the response, it's against the http rules to send headers before response body) require_once is like require but if file was alreadg required, the require once has no effect
30th Nov 2017, 8:45 AM
Mphj
Mphj - avatar