Assignment II BCA IV
1. Write steps for installing and configuring php on windows.
2. Write a php code for calculating sum of two numbers.
3. Write a php code to print values of local and global variables.
4. Write a php code to check whether a given number is even or odd.(if-else)
5. Write a php code to check whether a given number is positive, negative or
zero.(else-if)
6. Write a php code to find greatest among three numbers.(nested if)
7. Write a php code to perform basic calculator operations.(Switch-case)
8. Write a php code to print factorial of a given number.(for loop)
9. Write a php code to print prime numbers up to n .(while loop)
10.Write a php code to print Fibonacci series up to n .(do-while loop)
11.Write a php code to demonstrate string handling function.
12.Write a php code to demonstrate math function.
13.Write a php code to reverse elements of an array using indexed array.
14.Write a php code to print sum of n elements using associated array.
15.Write a PHP code for creating, accessing and destroying SESSION.
16.Write a PHP code for creating, accessing and destroying COOKIE.
17.Write a PHP code to create a class and access properties and methods using
its object.
18.Write a PHP code for login credentials using GET method.
19.Write a PHP code for login credentials using POST method.
20.Write a PHP code for handling text fields (validation).
DATABASE:
21.Write a PHP code to establish connection between web page and MySql.
22.Write a PHP code to insert data into database from web page.
23.Write a PHP code to delete data into database from web page.
24.Write a PHP code to update data into database from web page.
25.Write a PHP code to retrieve data on webpage from database.