Which of the following will NOT instantiate a DateTime object with the current timestamp?
A. $date = new DateTime();
B. $date = new DateTime('@' . time());
C. $date = new DateTime('now');
D. $date = new DateTime(time());
How can you determine whether a PHP script has already sent cookies to the client?
A. Use $_COOKIE
B. Use the getcookie() function
C. Use the headers_sent() function
D. Use JavaScript to send a second HTTP request
Which of the following is true about stream contexts? (Choose 2)
A. A context can modify or enhance the behavior of a stream
B. A context indicates what session the stream is part of
C. A context is a set of parameters and stream wrapper specific options
D. Contexts are created with new Stream_Context();
Which of the following PHP functions can be used to set the HTTP response code? (Choose 2)
A. header_add()
B. header()
C. http_set_status()
D. http_response_code()
E. http_header_set()
Which of the following items in the $_SERVER superglobal are important for authenticating the client when using HTTP Basic authentication? (Choose 2)
A. PHP_AUTH_TYPE
B. PHP_AUTH_PASSWORD
C. PHP_AUTH_DIGEST
D. PHP_AUTH_PW
E. PHP_AUTH_USER
In a shared hosting environment, session data can be read by PHP scripts written by any user. How can you prevent this? (Choose 2)
A. Store session data in a different location with session.save_path .
B. Store session data in a database.
C. Enable safe_mode .
D. Set session.name to something unique.
Which of the following rules must every correct XML document adhere to? (Choose 2) A. It has to be well-formed.
B. It has to be valid.
C. It has to be associated to a DTD.
D. It may only contain UTF-8 encoded characters.
Which of the following can be registered as entry points with a SoapServer instance (choose 2):
A. A single function
B. A single method from a class
C. All methods from a class
D. All classes defined in a script
Which sentence describes the following regular expression match? preg_match('/^\d+(?:\.[0-9]+)?$/', $test);
A. It matches float numbers with thousand seperators.
B. It matches float numbers without thousand seperators.
C. It matches binary integer numbers.
D. It matches any string.
E. It does not match anything