What is session? Write a PHP program for maintaining user data with sessions. [5]
Debugging PHP
1.
Define error handling, error reporting and error suppression. [5]
File Handling
1.
Write a PHP program to parse a CSV file. [5]
Functions
1.
What is a function? How can you define and call a function in PHP? Write a PHP program to implement a function with parameters and return value. [10]
Handling Forms
1.
How can you retrieve form data? Write a PHP program to create a form data that will take a Fahrenheit value as input and displays equivalent Celsius value on submit. The Celsius = (5/9)*(Fahrenheit-32). [10]
Introduction
1.
How can you define variable in PHP. Illustrate with example. [5]
Objects
1.
How can you define class and object in PHP. Illustrate with example. [5]
Strings and Arrays
1.
What are casting operators? Differentiate for from foreach statement. Write PHP program to illustrate use of for and foreach. [10]
2.
Write a PHP program that will read two input strings in variable fname and lname and display concatenation of fname and lname. [5]
3.
How conversion between array and variables is done? [5]
4.
Write a PHP program to illustrate string patterns using regular expression. [5]
Working with Database
1.
Write a PHP program to connect database and retrieve data from a table and display in a page. [5]