updated php scripts