Added php file

Added php document.
Corrected Code

Added and corrected some code that I had done before.