Improved php editing