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
How to check an element is exists in array or not in php?
What does empty mean in php?
> symbol is used to redirect the output of a command. State Whether True or False?
What is the difference between runtime exception and compile time exception?
How do you sort an array in php?
What are session variables in php?
What is the current php version?
Name some of the functions in php.
/temp is a type of filesystem directory. State Whether True or False?
Difference between $message vs. $$Message in php.
What is variable and data type?
Where are php configuration settings stored?
How can we increase execution time of a php script?
What is traits? How it is used in php?
What is a simple php method to make a cross domain data request?