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

255

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();
Article written by developer and designer


1 comment so far ↓

If you found this post useful click the share this button. Contribute below by adding a comment, no registration is required.

  • Yerson says on at 5:45 am comment #

    Whoa, whoa, get out the way with that good inimnoatfor.

Leave a Comment