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
Explain the casts allowed in PHP?
Can we override static method in php?
Write a php script to get the largest key in an array?
Which is better mysql or sql?
How to randomly retrieve a value from an array?
What are the steps for the payment gateway processing?
What is php good for?
What is difference between core php and framework?
How to send a cookie to the browser?
Is facebook still written in php?
What is instantiation?
How would you determine the size of a file in php?
What do you mean range() in php?
Is php required for wordpress?
What is the difference between $message and $$message in php?