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 can I make a script that can be bilingual (supports english, german)?
What is call by reference in php?
What is mysql_real_escape_string used for?
What is composer used for?
How to delete file in php?
Tell me how can we check the value of a given variable is alphanumeric?
What is a static method php?
What are the method available in form submitting?
What are the array functions in php?
How is it possible to parse a configuration file?
Tell me how comparison of objects is done in php5?
What is the difference between a session and cookies?
Which methods should be used for sending an email using the variables $to, $subject, and $body?
Are objects passed by value or by reference?
What is session in php why it is use?