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 / rubinthomas
1.In order to set a session variable u must first declare
the session_start() function as the first statement when u
execute your page after which can u assign or manipulate
session variables $_SESSION["foo"] = 'bar';
| Is This Answer Correct ? | 13 Yes | 1 No |
Post New Answer View All Answers
How to read one character from a file?
How big is nvarchar max?
What is the best php version for wordpress?
What is apache and php?
What is the use of pear in php?
What is substr in php?
How to delete a file from the system?
A process is identified by a unique___
What is difference between action hook and filter hook?
What is php sequence?
What is ltrim?
Explain what does the unset() function means?
What is difference between sql and php?
Which array function checks if the particular key exists in the array?
What is the difference between $name and $$name?