Repaired PHP

fixed some errors