Home > PHP & Programming > Quizzes > Practice Test: Handling Files In PHP
Practice Test: Handling Files In PHP
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 59% Most missed: “The … function returns an array consisting of files and directories found in the…”
Practice Test: Handling Files In PHP
Time left 00:00
19 Questions

1. The … function retrieves the current position of the file pointers offset within the resource.
2. The … function operates similarly to fgets(), except that if also strips any HTML and PHP tags from the input.
3. The … function sets the file filenames last modified and last accessed times, returning TRUE on success or FALSE on error.
4. The … function returns a file’s last access time in UNIX timestamp format or FALSE on error.
5. The … function converts all symbolic links and relative path reference located in the path to their absolute counterparts.
6. The … function returns a file’s last access time in UNIX timestamp format or FALSE on error.
7. The … function moves the pointer to the location specified by a provided offset value.
8. The … function sets the file filenames last modified and last accessed times, returning TRUE on success or FALSE on error.
9. The … function reads an entire file specified by filename and immediately outputs it to the output buffer, returning the number of bytes read.
10. The … function returns the total size, in bytes, consumed by the disk partition housing a specified directory.
11. The … function reads the contents of a file into a string.
12. The … function returns a certain number of characters read in through the opened resource handle or everything it has read up to the point when a new line or an EOF character is encountered.
13. The … function operates similarly to fgets(), except that if also strips any HTML and PHP tags from the input.
14. The pathinfo() function creates an associative array containing which of the following components of a path.
i. Directory Name
ii. Base Name
iii. File extension \r\n