PHP Interview Questions and Answers


What is PHP?
PHP (Hyper textual content Pre Processor) is a scripting language generally used for net applications. PHP can be without difficulty embedded in HTML. PHP commonly runs on a internet server. It is handy for free and can be used throughout a range of servers, running structures and platforms.
What are the differences between GET and POST methods in form submitting, give the case where we can use get and we can use post methods?
–>
On the server side, the most important distinction between GET and POST is where the submitted is stored. The $_GET array stores information submitted by the GET method. The $_POST array shops information submitted by the POST method.

On the browser side, the difference is that information submitted via the GET method will be displayed in the browser’s tackle field. Data submitted via the POST technique will now not be displayed somewhere on the browser.

GET method is in most cases used for submitting a small quantity and much less touchy data. POST method is mostly used for submitting a giant quantity or sensitive data.
Who is the father of php and explain the changes in php versions?
–>
Rasmus Lerdorf for version modifications go to http://php.net/ Marco Tabini is the founder and writer of php|architect.
How can we submit from without a submit button?
–>
We can use a easy JavaScript code linked to an match trigger of any shape field. In the JavaScript code, we can call the document.form.submit() characteristic to submit the form.
How many ways we can retrieve the date in result set of mysql Using php?
–>
As character objects so single record or as a set or arrays.
What is the difference between $message and $$message?
–>
They are both variables. But $message is a variable with a constant name. $message is a variable who’s name is saved in $message. For example, if $message includes “var”, $message is the equal as $var.
What are the differences between require and include, include_once?
–>
File will now not be protected more than once. If we want to include a file once only and similarly calling of the file will be not noted then we have to use the PHP characteristic include_once(). This will forestall issues with feature redefinitions, variable fee reassignments, etc.
What are the different tables present in mysql?
–>
Total 5 types of tables we can create

1. MyISAM

2. Heap

3. Merge

4. InnoDB

5. ISAM

6. BDB

Leave a Reply