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

Answers were Sorted based on User's Feedback



Which of the following represents the proper way to set a session variable? Answer: a. $_SES..

Answer / ramji

Question: When administering MySQL, you should make the
data directory accessible via the operating system ....
Answer 1: only to the "mysql" user
Answer 2: only to the "root" user
Answer 3: to the "mysql" user, and also to the "webserver" user
Answer 4: to the "mysql" user, and also to people who are
installing applications that use MySQL

Is This Answer Correct ?    72 Yes 10 No

Which of the following represents the proper way to set a session variable? Answer: a. $_SES..

Answer / p.swamy

session variable answer is:

a. $_SESSION['foo'] = 'bar';

Is This Answer Correct ?    31 Yes 2 No

Which of the following represents the proper way to set a session variable? Answer: a. $_SES..

Answer / 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

Which of the following represents the proper way to set a session variable? Answer: a. $_SES..

Answer / savitha

session variable answer is:

a. $_SESSION['foo'] = 'bar';

Is This Answer Correct ?    6 Yes 0 No

Which of the following represents the proper way to set a session variable? Answer: a. $_SES..

Answer / palaniraja.wordpress.com

3.which statement can be used to determine how the optimizer
resolves a query

EXPLAIN

Is This Answer Correct ?    6 Yes 1 No

Which of the following represents the proper way to set a session variable? Answer: a. $_SES..

Answer / dhir

$_SESSION['foo'] = 'bar';

Is This Answer Correct ?    5 Yes 1 No

Which of the following represents the proper way to set a session variable? Answer: a. $_SES..

Answer / chetana

$_SESSION['FOO']='bar';

Is This Answer Correct ?    4 Yes 0 No

Which of the following represents the proper way to set a session variable? Answer: a. $_SES..

Answer / guest

1 a

Is This Answer Correct ?    1 Yes 0 No

Which of the following represents the proper way to set a session variable? Answer: a. $_SES..

Answer / bala

b. session_start();

Is This Answer Correct ?    3 Yes 6 No

Post New Answer

More PHP Interview Questions

What does addslashes do in php?

0 Answers  


Which is not a php magic constant?

0 Answers  


How are php sessions stored?

0 Answers  


Where sessions stored in PHP?

0 Answers  


Which software is used to run php programs?

0 Answers  






Write a hello world program using variable?

0 Answers  


hello experts good morning to everyone ! at present am now learning LAMP course sir( linux, apache,mysql and php) after finishing this course can i create my own website without investment is it possible ? please can any one tell sir and also tell me how can i upload my project after finishing the project in internet ? please tell the ways sir please send ur valuable suggestions to kiranpulsar2007@gmail.comcom

1 Answers  


What is rest api in php?

0 Answers  


How to create a directory?

0 Answers  


Difference between $message vs. $$Message in php.

0 Answers  


How does php and apache work?

0 Answers  


Tell me how is it possible to know the number of rows returned in result set?

0 Answers  


Categories