PHP File Handling
- Which one of the following function reads a directory into an Array?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
It returns an array consisting of files and directories found in directory or returns FALSE on error.
- Which function is useful when you want to output the executed command result?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
system()
- Which function sets the file filename last-modified and last-accessed times?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
Its prototype is int touch(string filename [, int time [, int atime]]). It returns TRUE on success or FALSE on error.
- Which one of the following function outputs the contents of a string variable to the specified resource?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
fwrite()
- Which one of the following function operates similarly to fgets(), except that it also strips any HTML and PHP tags form the input?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
fgetss()