1 What is the best way to ensure the distinction between filtered / trusted and unfiltered / untrusted data?
Answer...
None of the above
Never trust any data from the user
Enable built-in security features such as magic_quotes_gpc and safe_mode
Always filter all incoming data
Use PHP 5's tainted mode
2 SimpleXML objects can be created from what types of data sources?
Answers: (choose 3)
A String
An array
A DomDocument object
A URI
A Database resource
3 Which of the following functions could be used to break a string into an array?
Answers: (choose 3)
array_split()
split()
string_split()
preg_match_all()
explode()
4 If you would like to change the session ID generation function, which of the following is the best approach for PHP 5?
Answer...
Set the session.hash_function INI configuration directive
Use the session_set_id_generator() function
Set the session id by force using the session_id() function
Use the session_regenerate_id() function
Implement a custom session handler
Please answer through the comments I will make it publish on blog..............
[Thursday, February 21, 2008
|
1 comments
]
Popular Posts
- php questions
- some php questions
- How to create a plugin in elgg.
- php Questions
- Mysql query for searching a value, add weightage on the number of occurances and sort based on the weight-age
- Contact Me
- solving the packaging problem in PHP
- How to add or remove WWW on URLs using htaccess.
- php questions
- Inserting nodes into xml files using XML DOM in PHP .
1 comments
Q1: Always filter all incoming data
Q2: A String, A DomDocument object, A URI
Q3: split(), preg_match_all(), explode()
Q4: Set the session id by force using the session_id() function
Post a Comment
Please put your comments here. your questions, your suggestions, also what went wrong with me.