I'm getting beat up and bruised today by PHP. Mainly due to variable scoping. Can some one point me towards some nice (short) docs on the subject - or rattle off the 5 golden rules, or something ... help? James.