Use SCRIPT_NAME not PATH_INFO in PHP

You should use

$_SERVER['SCRIPT_NAME']

not

$_SERVER['PATH_INFO']

in PHP. PATH_INFO has been monkeyed with in some versions (and when running as FastCGI?) so sometimes it appears as PATH_INFO and other times as ORIG_PATH_INFO and PATH_INFO does not exist in the $_SERVER array. SCRIPT_NAME seems to have had a far less chequered history. Sometimes I think there could be a new beautiful version of PHP without little gotchas like this, but then that wouldn’t really be PHP would it?

International Marketing Calls

“Hello, may I speak with the person there with responsibility for the telephone?”

Hang on, aren’t I registered with the wonderful Telephone Preference Service making any cold callers liable to a £20,000 fine? Yes, I am but this man does not sound English and this is a terribly odd sounding line if it is coming from inside the UK. Oh dear, I think I’ve just come face to face with a new phenomenon.

I guess voice-over-ip (internet telephone calls) means that it is now possible for companies not based in the UK to start cold calling into the UK. So now we need an international agreement on spam telephone calls?