Free 200-550 Exam Braindumps

CORRECT TEXT
Your supervisor wants you to disallow PHP scripts to open remote HTTP and FTP resources using PHP's file functions. Which php.ini setting should you change accordingly?

  1. allow_url_fopen, allow_url_fopen=off, allow_url_fopen=Off, allow_url_fopen = off, allow_url_fopen = Off

Answer(s): A



Which of the following code snippets DO NOT write the exact content of the file "source.txt" to "target.txt"? (Choose 2)

  1. file_put_contents("target.txt", fopen("source.txt", "r"));
  2. file_put_contents("target.txt", readfile("source.txt"));
  3. file_put_contents("target.txt", join(file("source.txt"), "\n"));
  4. file_put_contents("target.txt", file_get_contents("source.txt"));
  5. $handle = fopen("target.txt", "w+"); fwrite($handle, file_get_contents("source.txt")); fclose($handle);

Answer(s): B,C



What is the recommended method of copying data between two opened files?

  1. copy($source_file, $destination_file);
  2. copy($destination_file, $source_file);
  3. stream_copy_to_stream($source_file, $destination_file);
  4. stream_copy_to_stream($destination_file, $source_file);
  5. stream_bucket_prepend($source_file, $destination_file);

Answer(s): C



Which of the following will set a 10 seconds read timeout for a stream?

  1. ini_set("default_socket_timeout", 10);
  2. stream_read_timeout($stream, 10);
  3. Specify the timeout as the 5th parameter to the fsockopen() function used to open a stream
  4. stream_set_timeout($stream, 10);
  5. None of the above

Answer(s): D






Post your Comments and Discuss Zend 200-550 exam with other Community members:

200-550 Exam Discussions & Posts