PHP File Handling
- Which one of the following function is capable of reading a specific number of characters from a file?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
Its prototype is string fgets(resource handle [, int length]). If the optional length parameter is omitted, 1024 character is assumed.
- Which one of the following function is capable of reading a file into a string variable?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
file_get_contents()
- Which one of the following function is capable of reading a file into an array?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
file()
- Which one of the following PHP function is used to determine a file’s last access time?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
The fileatime() function returns a file’s last access time in Unix timestamp format or FALSE on error.
- The filesize() function returns the file size in ___________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
bytes