The header() php function is used to, funnily enough, control how the page headers work.
Joking aside, a simple explanation would be....
The headers hold data which the user never sees.
One example would be the browser type and similar data.
PHP also uses it to redirect the user before, during, or after an operation is processed. Redirection is probably the most common use for it.
Hope that helps? |