Question:
(a) Describe how syntax errors occur in PHP. Illustrate your answer with extract codes.
(b) Explain two methods that might be used to control sessions in a web based application. Explain the shortcomings of each method.
(c) Using the concept of Sessions in PHP, write extract codes which maintains the value of a variable when a page is revisited by a user.
(d) Write a PHP program to determine and display the factorial of any number entered into a Text Box field.