Entries Tagged 'Internet Explorer' ↓

PHP Header Location bug with Internet Explorer IE6, IE7, IE8

Thank you microsoft for yet another bug that ruined some store processing code. There two bugs to look out for: not using a capital L, and not killing the process.

Example:

header(‘location http://www.mywebsite.com/relocate/’);

Bad code for internet explorer. To assure you are relocated and the page you are calling the header doesn’t magically reload itself and ruin your life:

header(‘Location http://www.mywebsite.com/relocate/’);
die();