Before updating php code