Saturday, 13 July 2013
PHP Interview Questions and Answers 1 to 10 | PHP Interview | PHP Interview 2013
![]() |
php Que.... |
Q1. What is PHP stands for?
Ans. Hyper text Pre Processor
Q2. What is PHP?
Ans. The
PHP is a Hypertext Pre-processor and is a programming language that allows web
developers to create dynamic content that interacts with databases. PHP is
basically used for developing web based software applications.
Q3. Who is the Father of
PHP?
Ans. Rasmus Lerdorf
Q4. Which programming language
does PHP resemble to?
Ans. PHP resemble to pearl and C
Q5. What the difference is between include and require?
Ans. Require () and include () are the same with respect to
handling failures. However, require () results in a fatal error and does not
allow the processing of the page. i.e. include will allow the script to
continue.
Q6. What is the current
version of PHP?
Ans. php 5.3
Q7. How can we create a database using PHP and MySQL?
Ans. We can create MySQL database with the use of
mysql_create_db ("Database Name")
mysql_create_db ("Database Name")
Q8.What Is a Session?
Ans.It can be used to store information on the server for future
use.
Q9. Is variable name case sensitive?
Ans. Yes
variable name case sensitive and
we cannot start a
variable with number like $6name as a valid variable name starts with a letter or underscore, followed by any
number of letters, numbers, or underscores.
Q10. How can we execute a
php script using command line?
Ans. Just run the
PHP CLI (Command Line Interface) program and provide the PHP script file name
as the command line argument. For example, "php myScript.php",
assuming "php" is the command to invoke the CLI program.
Be aware that if your PHP script was written for the Web CGI interface, it may not execute properly in command line environment.
Be aware that if your PHP script was written for the Web CGI interface, it may not execute properly in command line environment.
other Que... post in short time...
thx... for support - free9news
0 comments:
Post a Comment