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)
[Link] a php code to print Fibonacci series up to n .(do-while loop)
[Link] a php code to demonstrate string handling function.
[Link] a php code to demonstrate math function.
[Link] a php code to reverse elements of an array using indexed array.
[Link] a php code to print sum of n elements using associated array.
[Link] a PHP code for creating, accessing and destroying SESSION.
[Link] a PHP code for creating, accessing and destroying COOKIE.
[Link] a PHP code to create a class and access properties and methods using
its object.
[Link] a PHP code for login credentials using GET method.
[Link] a PHP code for login credentials using POST method.
[Link] a PHP code for handling text fields (validation).
DATABASE:
[Link] a PHP code to establish connection between web page and MySql.
[Link] a PHP code to insert data into database from web page.
[Link] a PHP code to delete data into database from web page.
[Link] a PHP code to update data into database from web page.
[Link] a PHP code to retrieve data on webpage from database.