Thursday, February 21, 2008

php questions

1 When connecting to a database using PDO, what must be done to ensure that database credentials are not compromised if the connection were to fail?

2 How can one take advantage of the time waiting for a lock during a stream access, to do other tasks using the following locking code as the base:

$retval = flock($fr, LOCK_EX);

3 The Decorator pattern is used to__________

4 HTTP authentication, how can we retrieve the user name & pasword?

5 Type-hinting and the instanceof keyword can be used to check what types of things about variables?

6 The MVC pattern in Web development involves which of the following components?

7 Given the string:
$var = "john@php.net";

Please answer through the comments I will make it publish on blog..............

1 comment:

Please put your comments here. your questions, your suggestions, also what went wrong with me.