Used to send a raw HTTP header, often used for page redirects.

Must be called before any other output is sent.

// Redirect the request to https://keithgreer.uk
header("Location: https://keithgreer.uk");
// Send an error code to the browser, for example a 404
header("HTTP/1.0 404 Not Found");

Hello, I'm Keith, a website developer in Belfast, Northern Ireland working with PHP, Magento, Shopify, WordPress along with everything that involves getting websites online

keithgreer.uk · Blog Posts

Warning: Your browser is very out-of-date. You should upgrade to a better browser.