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 is $_ request?

0 Answers  


What is difference between single quotes and double quotes in php?

0 Answers  


Questions on OOP concepts 1. What are the access specifiers available in php ? Explain 2. What is object cloning ? 3. What are the differences between interface and abstract class ? 4. What is overloading ? 5. What is overriding ? 6. How to prevent function overriding ? 7. What is the use of "final" keyword ? 8. What is static variable ? How will access a static variable ? What is static class ?

2 Answers   IPMC, NIIT,


How to create reusable code in php?

0 Answers  


Explain what is smarty?

0 Answers  






What is query string php?

0 Answers  


What is cURL in PHP?

0 Answers  


How many escape sequences are recognized in single-quoted strings?

0 Answers  


What is the use of get and post method in php?

0 Answers  


1.<?php echo'bsfjbsnmfbs'; ?> 2.<? ech'hjndfjkshf'; ?> 3 <? echo'naskfdjnask'; three programs are exected but which is beter why

3 Answers   HCL,


What is difference between post and put in rest?

0 Answers  


How to redirect https to http url through .htaccess?

0 Answers  


Categories