PHP Interview Questions
Questions Answers Views Company eMail

when we select some checkboxes and we went for next page if we came back to prevoius page the selcted checkboxe should be checked

2 2857

I created a cookie with the value like '1A2A',now i want to update this value regularly (about 20 times in a minute) with the value '1A2A3A' , 3A is the new value,new value will vary on the request it may be 3A or 4A or 100A ,some times the cookie is updating with new value but not every time.Can any body suggest the solution

1 1843

we store and display scores of users in different games. In MySQL, records are stored as tuples (user-id, game-id, score). Now we need to support ranks of users, i.e., each user should be informed of his current rank in the community. The challenge is to come up with the best way to store the data in MySQL so that the requirements are efficiently met.

IndiaTimes,

1 1717




what do you mean by php.ini file ?????????

Samsung,

2 10191

how do we can copy of the content of a web page with the help og the URL and display them onto any other page

5 2506

what are the rules to be followed at the time of declaring a variable?,what is the purpose of var_dump()function in php,syntax of ternary operator()in php,difference between drop a table and truncate a table...

2 2924

how to overcome server time behind twleve hours compare to local system time

748

i got this error msg in online... how to solve this problem... i couldnot find out as soon as possible send me answer or idea COULD NOT ABLE TO CONNECT DATABASE . Can't connect to local MySQL server through socket '/usr/local/mysql-5.0/data/mysql.sock' (2)

Quest,

3 2629




This is regarding file uploading. 1. Who will be the owner of the uploaded file ? 2. What permission you will give for an uploaded file ? 3. What is mean by user, group and others and what kind of permission you will give for each user and explain the reason?

IBM,

1 2554

1.What is application server ? 2.What is web server ? 3.Explain the process of execution of a php file ?

IBM,

9 9420

how to insert logout time when browser close

Global Softtech,

1 4832

how to get server date and time?

10 15786

How do you add a joomla Template in admin panel of joomla? Please mention the steps

Cognizant, T3 Softwares,

3 4202

what are the errors and when we get that particular errors.and who will give that errors

3 2112

What do you mean by design patterns (php) ?

NIIT,

1 4724


Post New PHP Questions






Un-Answered Questions { PHP }

4 down vote favorite share [g+] share [fb] share [tw] I am developing my site using server side sessions using redis as backend for saving the session. Now the issue which is bothering me is of user leaving the website without logging out. I mean user simply closes the browser which causes the cookie to be deleted. Now session of that user still exists on the server and will not be used again as new login requires creating a new session due to security reasons. To avoid the case where hacker steals the old cookie and use it after user login again with same old session id. In essence user leaves the website without explicitly logging out and his session will be deleted after certain time limit of inaccessibility. I am thinking time limit of 30-60 minutes. Also with every new request from user his cookie will also be updated to keep track of when the user last time accessed the site. But nowadays, people let site remain open for long time without accessing it. For example users open facebook and gmail in new tabs and forget about them for 2-3 hours and still they are not asked to login again. Is letting a 2-3 hours old cooke access the session secure? My concern is someone steals user cookie and use it 2-3 hours later. Thinking on this topic has also forced me to question how facebook manages security if user can use a session where they are not accessing it for long periods of time and still they remain logged in. Or is it not secure for me to keep logged in when am not accessing the site session for longer period of time? It can be the case also there is some pinging mechanism using which sites keep track of user having their site open in a browser and when browser closes they are notified and can work accordingly. My website is a social network and needs all those security and usage features which a social network may need. I am new to web security and web development in general and may be the case where my above questions may seem a little basic. If you feel that is the case kindly point to some good reference where I can read and find answers to my question.

1110


What is mean tnq

254


am from coimbatore.am learning php&mysql. what will be the approx salary for me if i get a job in coimbatore.

903


can you give me an example code of calling java script function in php variable using AJAX.or with out ajax??????

672


if you run the app program all vendor open items are cleared but is it possible to reverse the again again open items please tell me the answer

518






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..

1058


write a note on Testing the web site

721


how to open & closing opening period in fico

499


why did u want to leave your past organisation?

905


Maine 12th ke bad 2 years ka web designing ka course kiya hai. Php me achcha hu. Ek fresher ko is field me kitna mil sakta hai ?

4032


what are interfaces and Abstart classes

786


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

857


How to make horizonatl menu and vertical menu responsive

1191


"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.

794


sort term descripttion form, report and uery

919