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 / savitha
session variable answer is:
a. $_SESSION['foo'] = 'bar';
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
How to get no of arguments passed to a PHP Function?
What is the difference between php and javascript?
Explain me what is the use of header() function in php?
When to use get and post request?
What is session data?
How to enable error reporting in php?
What are php errors?
What is user defined function in php?
How to get number of elements in an array?
How do you measure variables?
What are the differences between PHP3 and PHP4 and PHP5? what is the current stable version of PHP?
How can image properties be retrieved in php?
Which is faster for or foreach?
How do you end a session in php?
What is Apache's configuration file typically called?