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
What are the three parts of an http request?
How to select a database?
What are different types of errors available in Php?
How to uploaded files to a table?
What is the use of $_server and $_env?
What are default session time and path?
Why do we need abstract class in php?
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?
Tell me whether it is possible to share a single instance of a memcache between multiple php projects?
What is a static variable in php?
Which array function checks if the particular key exists in the array?
How to convert a character to an ascii value?
How to read a file in php?
What are the methods useful for method overloading?
What is the default session out time?