PHP interview questions

Interview questions
PHP
PHP interview questions
Programming

What is the difference between $_GET and $_POST

GET: Transfers the form data through http head location & it displays the data on URL address bar. Data can be cached. Is unsecured. URL are saved in browser history. URL can be bookmarked. Transfers limited amount of data. Can’t upload the file. POST: Transfers the form data through document body. Data can not be […]

Read More
Interview questions
PHP interview questions

What are the differences between require and include?

There are following difference between require and include. require will produce a fatal error and stops the script include will only produce a warning and the script will continue. PHP include Function The include function is used in PHP when you want to include a file with in the process. It takes one argument which […]

Read More
Interview questions
PHP interview questions

What is the difference between Session and Cookie?

There are some differences between Session and Cookie .Following are the some difference: Sessions are stored on the server sides, and cookies are stored on the user’s computers in the text file format. Multiple variables ca not hold by cookies but Session can hold multiple variables. We can set expiry for a cookie and the […]

Read More
Interview questions
PHP interview questions

How do you connet mysql database with PHP ?

We can create MySQL database with the use of : mysql_create_db(“Database Name”) We can connect Mysql Database with PHP using both Procedural and Object oriented style . Following are the examples below: $link = mysqli_connect(“localhost”, “UserName”, “Password”, “database name”); $mysqli = new mysqli(“localhost”, “UserName”, “Password”, “database name”); and in old type of connectivity we use: […]

Read More
Interview questions
PHP interview questions

Differences between PHP versions

The current stable version of PHP is PHP 5.4.11 on 17-01-2013 as still waiting for PHP6 with unicode handling thing in the latest version. There are lot of difference among PHP3 , PHP4 and PHP5 version of php and PHP6 is till in under development process. So we are checking difference between oldest version and […]

Read More
Interview questions
PHP interview questions

What is PHP?

Rasmus Lerdorf is known as the father of PHP and development of PHP started in 1994 for their own Personal Home Page (PHP) and they released (PHP) FI (Forms Interpreter) version 1.0 on 8 June 1995 publicly. But in 1997 two Israeli developers named Zeev Suraski and Andi Gutmans rewrote the parser that formed the […]

Read More
Do NOT follow this link or you will be banned from the site!