PHP Basic Questions for Freshers

Describe how PHP Works - Any PHP web page first interacts with the interpreter once a request I sent from the browser...
Explain how to work with Permissions in PHP - Permissions in PHP are very similar to UNIX. Each file has three types of permissions....
How to create a simple AD rotator script without using database in PHP - Following are the steps to create a simple AD rotator script without using database in PHP....
Things to Remember for PHP Functions - Any php function starts with function()...
Creating Your First PHP Cookie - Cookie in PHP is used to identify a user.....
When would you use htmlentities? - HTMLENTITIES disallows users to run malicious code in HTML....
E-mail With PHP - PHP uses its inbuilt mail() function to send emails from the script...
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..
What is the difference between mysql_connect() and mysql_pconnect()? - When mysql_pconnect() is used, the function initially tries to find an open persistent connection....
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....
Explain about Type Juggling in php with an example - The ternary conditional operator is of the form.....
Difference between Reply-to and Return-path in the headers of a mail function - Reply-to is the address where the email needs to be delivered...
How to store the uploaded file to the final location - Files in PHP can be uploaded using move_uploaded_file ( string filename, string destination).....
Explain type of inheritance that php supports - PHP supports single inheritance.....
Explain each encryption function supported in PHP - Mcrypt() supports many functions. Few are listed below....
GRANT commands and REVOKE commands - GRANT – is used to assign or grant privileges to users...
Difference between the functions unlink and unset - Unlink is used to delete the file used in the context....
Explain 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.....
Explain how to use PGP with PHP - In most cases GnUPG(GNU Privacy Guard) is recommended rather than Pretty Good Privacy...
Explain how to do user authentication in php - The most convenient way to authenticate a user in PHP is to use session.....
Explain how to set the browser timeout - Browser time out can be set using set_time_limit() method......
Explain how to create random passwords - Generating random passwords in PHP can be done in multiple ways depending on how much security the application demands...
Explain how to access a COM object from within my PHP page - To access COM object from PHP page, COM class can be made use of.....
How to get the DNS servers of a domain name.....
Explain how to mail the content of a form - The HTML code can call the samplemail.php page and use the POST method to post the data.....
Explain how to send large amounts of emails with php - The mail() function of PHP is quite robust for sending bulk emails...