FAQ


FAQ( frequently asked questions)

Describe how PHP Works.

Any PHP web page first interacts with the interpreter once a request I sent from the browser……….

Creating Your First PHP Cookie

Cookie in PHP is used to identify a user…………….

How Sessions Work

When a user logs in an application, his details are usually stored in a session variable………………

PHP Superglobals

These are predefined variables that are by default available globally………………..

Explain with code how to get a user’s IP address.

The users IP address can be returned by specifying the host name as aparameter in gethostbyname(“hostname”) method………………….

Explain with code how to generate a random number from php.

The function rand() can be used to generate random number. If the random number needs to be in between some range, the parameters can be specified…………………

Explain type of inheritance that php supports.

PHP supports single inheritance……………

Explain with an example how to insert javascript in php code.

JavaScript can be inserted by specifying the language as…………………

Is it possible to send HTML mail with php?

Yes, using the mail() function of PHP, HTML emails can be sent………………………..

How do I add my PHP directory to the PATH on Windows?

On Windows NT+ and Windows Server 2000+:………………….

Is PHP limited to process GET and POST request methods only?

No, it is possible to handle any request method……………..

Leave a comment