General Knowledge Quiz - Question & Answers Set - 14

  • Question 1 :
  • What Is a Session
  • A session is a temporary set of variables which is stored in the server.A session is a logical object created by the PHP engine to allow you to preserve data across subsequent HTTP requests. There is only one session object available to your PHP script
  • Question 5 :
  • What is a cookie
  • Cookie is a tiny bit of information stored in the client machine. We can set the expiration time of a cookie. setcookie(name, value, expire, path, domain); accessing cookie vale $_COOKIE["name"];
  • Question 7 :
  • What is difference between require (), include ()
  • Difference between require() and include() is that require() produces a FATAL ERROR if the file you want to include is not found. require() stop the further execution of the program as soon as it encounters and error., while include() only produces a WARN
  • Question 8 :
  • What are the differences between include and include_once
  • The include_once() statement includes and evaluates the specified file during the execution of the script. This is a behavior similar to the include() statement, with the only difference being that if the code from a file has already been included, it wil
  • Question 9 :
  • What is Superglobals in PHP
  • In order to store information coming from both the client and server and pertaining to the current execution of a script PHP has a series of arrays defined these arrays are called superglobals.There 9 superglobal arrays. $GLOBALS[] : The complete list o
  • Question 14 :
  • What is urlencode and urldecode
  • urlencode() returns the URL encoded version of the given string. URL coding converts special characters into % signs followed by two hex digits. urldecode() returns the URL decoded version of the given string.
General Knowledge Quiz - Question & Answers Set - 14
Home Ask Questions Study Current Affairs Previous Papers Kerala PSCIBPSUPSCRBITNPSCMPSCSSCCBSEUnited StatesModel Tests News More Answers Coaching Centres Careers Downloads Colleges