每日一题(12)
上一篇 /
下一篇 2007-10-22 20:05:18
/ 个人分类:每日一题
1. How are session variables accessed?
A. Through $_GET
B. Through $_POST
C. Through $_REQUEST
D. Through global variables
E. None of the above
Answer:
Although session data can be accessed using the global variables if the register_globals INI setting is turned on, the exam uses a version of PHP configured using the default php.ini file found in the official PHP distribution. In recent versions of PHP, the register_globals setting is turned off by default because of its serious security implications. As a result, Answer E is correct.
2. What function causes the following header to be added to your server’s output?
Set-Cookie: foo=bar;
Your Answer: ____________________________
Answer:
Clearly, this question refers to the setcookie or setrawcookie functions, although the header function could be used as well.
相关阅读:
- 每日一题(2) (chenz1117, 2007-10-08)
- 每日一题(3) (chenz1117, 2007-10-09)
- 每日一题(4) (chenz1117, 2007-10-10)
- 每日一题(5) (chenz1117, 2007-10-13)
- 每日一题(6) (chenz1117, 2007-10-14)
- 每日一题(7) (chenz1117, 2007-10-16)
- 每日一题(8) (chenz1117, 2007-10-17)
- 每日一题(9) (chenz1117, 2007-10-18)
- 每日一题(10) (chenz1117, 2007-10-19)
- 每日一题(11) (chenz1117, 2007-10-21)
导入论坛
收藏
分享给好友
管理
举报
TAG:
每日一题