updated PHP scripts with new emperors