| 1 comments ]

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..............

1 comments

Anonymous said... @ Saturday, December 12, 2009 at 4:36:00 PM GMT

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.