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 run the interactive php shell from the command line interface?
How do you end a function in python?
Suppose the variable $var1 is set to 10 and the $var2 is set to the character var1, what's the value of $$var2?
Tell me how can we automatically escape incoming data?
Tell me what are magic methods?
How many types of php frameworks are there?
What is the use of trim function in php?
How to move uploaded files to permanent directory?
What types of loops exist in php?
How do I start a php session?
What are the features and advantages of object-oriented programming in php?
What is the use session in php?
What is meant by variable variables in php?
What are regular expressions in programming?
Where do we use get and post?