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
List types of array are available in php?
What is the difference between javascript and php?
How we get ip address of client, previous reference page etc?
What is the main difference between php 4 and php 5?
Explain scalar type declarations in php7?
I am writing an application in php that outputs a printable version of driving directions. It contains some long sentences, and I am a neat freak, and would like to make sure that no line exceeds 50 characters. How do I accomplish that with php?
What is associative array in php?
How do you end a function in python?
What are the differences between echo and print?
Is php outdated 2019?
What is difference between array_merge and array_combine?
What are the four scalar types of php?
What is curl php?
What is $globals php?
What are classes in php?