PHP part done

Need to handle warnings