What is a session? How can you handle sessions in PHP? [5]
Debugging PHP
1.
Define error handlers and error logs with examples. [5]
2.
Describe the concepts of display_errors, variables_order and request_order in PHP.ini Settings. [5]
File Handling
1.
Write a PHP program to read a file. [5]
Functions
1.
How can you define and declare functions? Differentiate global variable from static variable. Write a PHP program to demonstrate the use of global and static variables. [10]
Introduction
1.
What is server side scripting? How can you define and declare variables in PHP? Write PHP programs to demonstrate concepts of while and do while loops. [10]
2.
Describe the date time functions with examples. [5]
Objects
1.
How is class different from interface? Illustrate with an example. [5]
2.
Write a PHP program to demonstrate use of constructor. [5]
Strings and Arrays
1.
How conversion between arrays and variables is done using extract() and compact() functions? [5]
2.
What is exploding and imploding of strings? Illustrate with an example. [5]
Working with Database
1.
What is a PHP Data Object? How does MySQLi Object Interface work? Write a PHP program to read data elements from a database table and display in a page. [10]