Which of the following file permissions is set by the tempnam() function for the newly created temp file?
0600
Correct:
0600
Explanation:
Answer option B is correct.
The 0600 file permission denotes that the file owner can read and write the temp file and no other user or group can access the file. The tempnam() function generates a file resource having 0600 file permission in the file system with a randomly-generated filename to be used as temporary storage. The syntax of the tempnam function is as follows:
string tempnam ( string $dir , string $prefix )
Answer options A, D, and C are incorrect. These permissions are not set by the tempnam() function.