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 6533

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 5248

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 10183




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

10 13719

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 23782

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 3956

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

Dest,

2 3772

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

4 9327




How session works (internal processing of session) ?

ASD Lab, IPSR Solutions,

3 8418

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

3 4022

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

1 2461

What is serialization / object serialization ?

2 3283

What is the purpose of destructor ?

2 3523

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

1 1814

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

3 2459


Post New PHP Questions






Un-Answered Questions { PHP }

can we swap two different string using php for example:-- before swapping:-- 1 string :-hello friend, 2 string :-my dear, after swapping that strings will be: 1.hello dear, 2.my friend.

2280


i m a B.E,passed out few yrs bak failed to find good job due to less marks now thinkin of a career as PHP developer. is it a lucarative field and wat r career prospects; hv heard dat initial salary is very less bout 6k also most jobs r contrct jobs.pls guide me need ur valuable advice.pls hellppp!! thnx..

1026


Which is better php praogramming or cad/cam scope wise and also salaray wise?

874


why did u want to leave your past organisation?

856


What is Different between Joomla And Magento?

1516






What is polymorphism?

1308


what is constructor

301


write a prog using insert,update,delete in this manner as output? name: phno. add button 1.name phno. edit button delete button 2.

654


What are the security measures we have to take for our site not to hack by others?

1444


Hi this is amul jani here, i complied my graduation in B.com stream.. but as career i looking for PHP language.. to get shape my career. so is that possible to enter in IT world.. for me how much scope of develop my career in this field.. amul jani

790


How to make horizonatl menu and vertical menu responsive

1154


How to genrate report in wordpress cms

1013


write a note on Testing the web site

685


What is session and Cokkies . How it works . tell some thing about Session_id()

832


what is mean by portal

757