add some php useful code