Home Contact

PHP: header

<Keithblog />

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

Related posts on keithgreer.uk

PHP: glob

Magento Code: Check an import directory for new product CSVs and process using a Magmi profile

PHP: str_replace

Magento Code: Include currency switcher in the header or footer with Foundation mark-up

Magento Code: Add a drop down attribute and display it on the product page in custom HTML

Magento header.phtml basic user account and basket code

Magento Issue: Unable to sort configurable product attribute drop down options

WordPress Code: Completely disable comments using functions.php

How to use PHP to submit a cURL request with HTTP Post data