questiona what are the four types of code


Question:

(a) What are the four types of code declaration blocks you can use to write PHP?

(b) Distinguish between the include() statement and the require() statement.

(c) (i) Write down short note on PEAR and its coding standards.

(ii) List any two benefits while using PEAR.

(d) The form given below allows a user to guess and enter a number between one and ten. Write a PHP program that checks whether the number entered is less than, greater than or equals an auto generated random number. The program should respond with one of the following messages:

Your guess is too high, play again
Your guess is too low, play again
You got the right number, you win the game.

< form method="POST" action="guessgame.php">
< input type="hidden" name="posted" value="true">
What number between 1 and 10 am I thinking of?
< input name="guess" type="text">
< input type="submit" value="Submit">
< /form>

Request for Solution File

Ask an Expert for Answer!!
PHP Web Programming: questiona what are the four types of code
Reference No:- TGS0362000

Expected delivery within 24 Hours