Monday 16 May 2011

PHP Interview Questions




*difference between mysql_fetch_row and mysql_fetch_object

*how to get the total number of records from mysql result set

*what is register_globals

*difference between include and require

*What’s the difference between htmlentities() and htmlspecialchars()?

*How can we create a database using PHP and mysql?

*How can i get ip address of client?

*What is the difference between echo and print statement?

*What is the difference between the functions unlink and unset?

*How can increase the performance of MySQL select query?

*what is addslashes

*Difference between PHP4 and PHP5

*What is difference between srand & shuffle?

*what is session_destroy()

*what is the name of cookie to store sessionid in client system

*How can I maintain the count of how many persons have hit my site?

*what is global variable

*What is the difference between explode and split?

*how can i place the result set pointer on specified record

*what is mysql_fetch_field

*difference between mysql_connect and mysql_pconnect

*How to get the URL domain name in PHP?

*Who is the father of PHP

*What is .htaccess?

*what is the syntax of mail function

*What is the use of header() function in php?

*How can i Know Browser properties in php?

*What is the default port number of web server?

*what is server side script?

*what type of applications we can devolep using PHP

*Is PHP compiled or Interpreted language

*What is the current version of php

*Is php supports multiple Databases

*PHP stands for?

 Which function used to get the current time in mysql?
a) getTime()
b) Time()
c) NOW()

 mysql_pconnect()
isd to make a persistent connection to the database which means a SQL link that do not close when the execution of your script ends.
a) True
b) False

 To remove duplicate rows from the result set of a SELECT use the following keyword:
a) NO DUPLICATE
b) UNIQUE
c) DISTINCT
d) None of the above

How much character are allowed to create database name?
a) 55
b) 72
c) 64
d) 40

 To use MySQL on your computer, you'll need?
a) FTP and Telnet
b) Some sort of client program to access the databases
c) A Browser
d) Perl, PHP or Java

 What SQL clause is used to restrict the rows returned by a query?
a) AND
b) WHERE
c) HAVING
d) FROM

1 comment:

  1. So powerful! God php notess so good php notesn protectphp notesng us, and yet php notes mourn for all those who have lost loved ones, thephp notesr homes, everythphp notesng. As php notes was huddled php notesn the bathroom wphp notesth Jackson durphp notesng the tornado, the Lord brought to mphp notesnd the verse that my blog php notess centered around, and php notes found myself quotphp notesng "The Lord your God php notess wphp notesth you, He php notess mphp notesghty to save," over and over agaphp notesn to Jackson php notesn the mphp notesdst of my fear that the tornado would hphp notest us. What comfort thphp notess verse brphp notesngs me, as php notest shows God's faphp notesthfulness to us.

    ReplyDelete