Practical Assignment PHP
Practical Assignment PHP
Unit I:
1) Provide an overview of HTML and its role in web development. How do you design a
web form using all HTML controls?
2) What is CSS, and how does it enhance web design? Discuss the important properties
of CSS.
3) What is JavaScript, and what is its purpose in web development? How can you
retrieve form data using JavaScript? How do you validate form data using JavaScript?
Unit II:
1) Explain the differences between WAMP and XAMP.
2) Explain the concept of variables in PHP and their scope. How do you define and use
constants in PHP? Compare the use of `echo` and `print` in PHP.
3) What are the primary data types supported by PHP? Discuss the different types of
operators available in PHP.
Unit III:
1) Explain the use of `if-else` and `elseif` ladder in PHP.
2) Describe the `switch-case` statement and its usage in PHP.
3) Compare the different looping control statements in PHP: `while`, `do-while`, `for`,
and `foreach`.
4) How are multidimensional arrays created and used in PHP?
Discuss the various array functions available in PHP.
5) What are the different string manipulation functions in PHP? Describe the math
functions provided by PHP.
Unit IV:
1) How do you pass values to functions in PHP?
2) Explain the concepts of call by value and call by reference in PHP.
3) How are default arguments used in PHP functions? What is recursion, and how can it
be implemented in PHP?
4) How do you handle forms in PHP using the `GET` and `POST` methods? Describe the
process of handling date and time in PHP.
Unit V:
1) How are the `include` and `require` statements used in PHP? Explain the process of
file handling in PHP.
2) How can files be uploaded using PHP? What is state management, and how are
cookies and sessions used in PHP?
3) Provide an introduction to MySQL and its role in web development. How do you
create a MySQL database and table using PHP? Discuss the steps to connect to and
close a MySQL database in PHP.
4) How do you perform `INSERT`, `UPDATE`, `DELETE`, and `SELECT` operations on a
MySQL table using PHP?