Exam 5: Working With Files and Directories

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Both the echo() and print() statements send data to an input stream.

(True/False)
4.8/5
(46)

In PHP, files are uploaded through ____________________.

(Short Answer)
4.8/5
(24)

A new directory can be created using the ____________________ function.

(Short Answer)
5.0/5
(29)

The a+ mode argument opens the specified file for reading only and places the file pointer at the beginning of the file.

(True/False)
4.7/5
(44)

The ____ function should be used before deleting files and directories to determine if the file or directory name exists.

(Multiple Choice)
4.7/5
(42)

The ____________________ function determines whether a filename specifies a directory.

(Short Answer)
4.8/5
(44)

You append the \n carriage return escape sequence to the end of a line to identify the end of a line on a UNIX/Linux platform.

(True/False)
4.9/5
(30)

You can specify the maximum size of an uploaded file using MAX_FILE SIZE as a hidden input field below the file input field.

(True/False)
4.9/5
(37)

The file_write_contents() function writes a text string as a file.

(True/False)
4.8/5
(40)

Information about an uploaded file, such as error codes, temporary name, name, size, and type would be found in the ____________________ autoglobal array.

(Short Answer)
4.9/5
(40)

A ____________________ input field may be added to a form to set the maximum allowable upload file size.

(Short Answer)
4.8/5
(44)

Because the fopen() function must be used with the ____ function, you can specify what type of operations can be performed on the file and where and how the data will be written.

(Multiple Choice)
5.0/5
(40)

Using a four-digit ____________________ (base 8) code will ensure that proper permissions are assigned.

(Short Answer)
4.9/5
(28)

You use the createDir() function to create a new directory.

(True/False)
5.0/5
(38)

What function returns a line and moves the file pointer to the next line?

(Multiple Choice)
4.8/5
(38)

The ____________________ function incrementally writes data to a text file and returns the number of bytes written to the file.

(Short Answer)
4.8/5
(34)

When you are finished with a file stream, you use the statement fopen($handle) ; to ensure that the file doesn't keep consuming space in your computer's memory.

(True/False)
4.9/5
(36)

The two arguments required for the rename() function are ____.

(Multiple Choice)
4.7/5
(34)

When a text file contains a single block of text, the ____ function would read the entire contents of the file into a string.

(Multiple Choice)
4.7/5
(46)

What function is used to copy the names of the files in a directory to an array?

(Multiple Choice)
4.8/5
(40)
Showing 21 - 40 of 84
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)