header($string);

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.dev
header("Location: https://keithgreer.dev");
// Send an error code to the browser, for example a 404
header("HTTP/1.0 404 Not Found");

Ready to elevate your website?

Whether you're launching a new site, strengthening security, or adding a new feature, I can help transform your vision into a high-performing online presence.

Discuss your web development project