Hypertext Preprocessor Information Display Error

Hello! I am just a beginner user of Hypertext Preprocessor (PHP) programming. I have used exec function in debugging codes. However, the information of the error is not being displayed. I am not sure even with the code. Please provide me guide or any method on showing the information of error in detailed. Thank you!
