correcting php mode