Archive image

Archive for January, 2013

Simple JavaScript debugging with Chrome’s console

All to often of late, I have seen people having trouble trying to debug some JavaScript or other.

Some were stumped by the white screen of death which confronted them the minute their script failed silently, whilst others were trying to debug their program using an alert dialogue box (a truly tedious process).

Well, good news it at hand. There is another, more efficient way to do things – with the console. Read more…

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…