Web Development using PHP Viva question
Web Development using PHP Viva question
answers:
1. What is PHP?
Common types include string, integer, float, boolean, array, object, and NULL.
Both output data; echo is faster and can take multiple arguments.
GET appends data to the URL; POST sends data in the request body (more secure).
16. What is the purpose of header() in PHP?
Special methods like __construct(), __destruct(), __get(), etc., for specific behaviors.
Asynchronous JavaScript and XML allows updating parts of a page without reloading.
JSON (JavaScript Object Notation) is used to exchange data; PHP functions like
json_encode() and json_decode() handle it.
Divide data into chunks and use SQL LIMIT and OFFSET queries.
.htaccess controls server configurations like URL rewriting and restricting access.
These questions and answers should help during an MCA viva on PHP-based web
development.