Updated PHP scripts

Updated PHP scripts