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 create a mysql connection?
How do I use isdigit function?
What is PHP's configuration file called?
What is var_dump?
What is PECL?
Write a hello world program using variable?
How to send a cookie to the browser?
Tell me how can we pass the variable through the navigation between the pages?
What is $_ files in php?
How to register a variable in PHP session?
How to create an empty array in php?
What is the difference between abstract class and interface in php?
What is difference between mysql_connect and mysqli_connect?
What is session and why do we use it?
What type of errors can be occurred in php?