PHP Interview Questions
Questions Answers Views Company eMail

How can we do user authentication without using session/cookies ? For ex:- From page1 accepts user name and password and need to check in all other pages whether the user has logged in or not

TCS,

6 6614

1.Where are the sessions storing ? 2.What are the contents of a session file ? 3.If the server is loaded with too many session files there is a possibility of server crash. How can we solve this issue? 4. How does php server identify that the particular session belongs to particular user ? For ex: If two users A and B logged from different machine, separate session files (say 1 and 2) will be created in the server. But how the php knows that 1 belongs to A and 2 belongs to B ?

TCS, PA Consulting,

4 5318

1.Where are the cookies storing ? 2.What is the drawback of using cookies ? 3. If two site is having same cookie name and different values what will be the output if we echo the cookie name from those sites ? How can we solve this issue (How can we specify the domain name)?

TCS,

8 10327




Whether session will work if we disable cookies in client browser ?

10 13886

1. Write a function to swap two values ? $a = 10; $b = 20; echo $a, $b; swap(); // If u want u can pass parameters echo $a, $b; // It should print 20 , 10

Infosys, TCS, Torque Infotech, Aquasol,

14 24202

This question is regarding version control. If two developers are committing the same php file at same time what will happen ? What error it will show (if any) ?

TCS,

2 4016

What is the difference between include and include_once ? Which is one is good in terms of performance ?

Dest,

2 3810

What is the difference between mysql_connect and mysql_pconnect ? Which one is good in terms of performance ?

4 9400




How session works (internal processing of session) ?

ASD Lab, IPSR Solutions,

3 8494

Does not want to see PHPSESSID in the url. How can be done this ?

3 4071

How to check whether cookies are disbled or not in the browser ? If that is the case how do you handle the sessions ?

1 2503

What is serialization / object serialization ?

2 3335

What is the purpose of destructor ?

2 3575

Whether site will complete the execution of the script if Fatal error occurs ?

1 1852

when ever the user logged in the database table the current registered date will be appeared

3 2513


Post New PHP Questions






Un-Answered Questions { PHP }

what is constructor

326


is that "enumerated array" equal to "numeric array"?

1325


"mysql_fetch_row — Get a result row as an enumerated array",this sentence comes from the PHP offical manual.However ,i can not understand the words "enumerated array".I need some help.Thanks a lot to everyone that reply.

781


how retrive the video file in php using video tag

723


discuss the issue of software theft in ghana and how it has affected the economy

849






what is difference between PHP4 , PHP5

999


Hello Friends,I am seeking for a job in php having 9 months. exp.Please suggest any company openings.

1006


how to open & closing opening period in fico

480


What is mean tnq

230


what are interfaces and Abstart classes

771


Binary tree question - Node has numeric data (int) The function takes depth as argument and sum all the value of the node of the depth. For instance, (0) depth 0 / \ 10 20 depth 1 / \ / \ 40 50 60 70 depth 2 so if you pass get_sum(2), you would return 220 which is 40+50+60+70 (sum of depth2) write the function.

814


iam mca post graduate in 2010 not getting job in JAVA so iam looking for carear in php as market demand is high so it is best option to try for php or not

762


what is the current salary package in India for a PHP programmer who has 1.5 years experience

1772


Which have the fastest execution between mysql_fetch_array() and mysql_fetch_assoc()

1100


my english is not too good then what we apply for a php programer post

1260