manage the php code