Which of the following statements is NOT true?
Which of the following statements is NOT true?A . Class constants are publicB . Class constants are being inheritedC . Class constants can omit initialization (default to NULL)D . Class constants can be initialized by canstView AnswerAnswer: C
Which of the following can be registered as entry points with a SoapServer instance (choose 2):
Which of the following can be registered as entry points with a SoapServer instance (choose 2):A . A single functionB . A single method from a classC . All methods from a classD . All classes defined in a scriptView AnswerAnswer: A, C
Which of the following can NOT be used to send a cookie from within a PHP application?
Which of the following can NOT be used to send a cookie from within a PHP application?A . header()B . $_COOKIEC . setcookie()D . setrawcookie()View AnswerAnswer: B
What is the output of the following code?
What is the output of the following code? $text= 'This is text'; $text!= «<'TEXT' $text TEXT; $text2 = «<TEXT $text! TEXT; echo "$text2";A . This is textB . $textC . $text!D . $text2View AnswerAnswer: B
How should you track errors on your production website?
How should you track errors on your production website?A . Enabling display_errorsB . Enabling log_errorsC . Having a site-wide exception handlerD . Setting error_reporting to E_ALL & ~E_NOTICEView AnswerAnswer: B
When retrieving data from URLs, what are valid ways to make sure all file_get_contents calls send a certain user agent string? (Choose 2)
When retrieving data from URLs, what are valid ways to make sure all file_get_contents calls send a certain user agent string? (Choose 2)A . $default_opts = array('http'=>array('user_agent'=>"My Cool Browser")); $default= stream_context_set_default($default_opts);B . stream_context_set_option("user_agent", "My Cool Browser");C . ini_set('user_agent', "My Cool Browser");D . stream_context_set_option($context, "http", "user_agent", "My Cool Browser");View AnswerAnswer: A,...
What is the name of the key for the element in $_FILES['name'] that contains the provisional name of the uploaded file?
What is the name of the key for the element in $_FILES['name'] that contains the provisional name of the uploaded file?View AnswerAnswer: tmp_name
What is the output of the following code?
What is the output of the following code? function fibonacci (&$xl = 0, &$x2 = 1) { $result= $xl + $x2; $xl = $x2; $x2 = $result; return $result; for ($i = 0; $i < 10; $i++) { echo fibonacci() . ','; }A . An errorB . 1,1,1,1,1,1,1,1,1,1,C . 1,1,2,3,5,8,13,21,34,55,D...
What function can be used to retrieve an array of current options for a stream context?
What function can be used to retrieve an array of current options for a stream context?A . stream_context_get_paramsB . stream_context_get_defaultC . stream_context_get_optionsD . The 'options' element ofthe stream_get_meta_data return valueView AnswerAnswer: C
Which of the following are NOT acceptable ways to create a secure password hash in PHP? (Choose 2)
Which of the following are NOT acceptable ways to create a secure password hash in PHP? (Choose 2)A . mdS{)B . hash_pbkdf2()C . password_hash()D . crypt()E . openssl_digest()View AnswerAnswer: A, E