Archive image

Posts Tagged ‘MAMP’

PHP – header(‘Location: …’) not working in MAMP

Recently, I was trying to help someone build a simple contact form in PHP.

This person was running everything locally in a MAMP server (Macintosh, Apache, Mysql and PHP) and everything was going swimmingly until we ran into a strange issue: PHP’s header('Location: ...') wasn’t working as expected. In fact, to be fair, it wasn’t working at all.

This is how we solved the problem.

Read more…