updating base php script