Added some utility code that contains some common PHP functions shared
by the the PHP scripts.