reverting php script