Ans.: PHP is an open source server-side scripting language commonly used in web applications.
Ans.: Software in which the source codes are freely used, modify, and shared by anyone is called Open Source software. These can also be distributed under licenses that adhere with the Open Source Definition.
Ans.: The include() statement includes and evaluates a specified line i.e. It will include a file based in the given path. require() does the same thing expect upon failure it will generate a fatal error and halt the scrip whereas include() will just gives a warning and allow script to continue. require_once() will check it the file already been included and if so it will not include the file again.
Ans.: GET and POST are used to send information from client browser to web server. In case of GET the information is send via GET method in name/value pair and is URL encoded. The default GET has a limit of 512 characters. The POST method transfers the information via HTTP headers. The POST method does not have any restriction in data size to be sent. POST is used for sending data securely and ASCII and binary type’s data. The $_REQUEST contains the content of bot $_GET, $_POST and $_COOKIE.
Ans.: These are four types of errors.
Ans.: Session is a super global variable that preserves data across subsequent pages. Session uniquely defines each user with a session ID, so it helps to make customized web application where user tracking is needed.
Ans.: Cookie is a small piece of information stored in the client browser. It is a technique used to identify a user using the information stored in their browser (it already visited that website). Using PHP we can both set and get COOKIE.
Echo date(‘Y-m-d H:i:s’);
Ans.: For finding the length of string we use strlen() function and for array, we use count() function.
Ans.: unset() is used to destroy a variable whereas unlink() is used to destroy a file.