Which of the following represents the proper way to set a
session variable?
Answer:
a. $_SESSION['foo'] = 'bar';
b. session_start();
c. session_set_save_handler ('myopen', 'myclose', 'myread',
'mywrite', 'mydelete', 'mygarbage');
d. $foo = $_SESSION['foo'];
2.When administering MySQL, you should make the data
directory accessible via the operating system
3.which statement can be used to determine how the optimizer
resolves a query

Answer Posted / dhir

$_SESSION['foo'] = 'bar';

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the three parts of an http request?

574


How to select a database?

546


What are different types of errors available in Php?

498


How to uploaded files to a table?

563


What is the use of $_server and $_env?

573






What are default session time and path?

563


Why do we need abstract class in php?

508


Explain the value of the variable input is a string 1,2,3,4,5,6,7. How would you get the sum of the integers contained inside input?

575


Tell me whether it is possible to share a single instance of a memcache between multiple php projects?

541


What is a static variable in php?

534


Which array function checks if the particular key exists in the array?

501


How to convert a character to an ascii value?

564


How to read a file in php?

525


What are the methods useful for method overloading?

531


What is the default session out time?

555