PHP File System
Which of the following functions reads the entire contents of a file?
1. fgets()
2. file_get_contents()
3. fread()
4. readfile()
5. file()

Option 1, 3 and 4
Option 2 and 4
Option 2, 4 and 5
Option 3 and 5

ANSWER DOWNLOAD EXAMIANS APP

PHP File System
What is the difference between stat() and fstat()?

fstat() is an alias of stat()
While fstat() works on open file pointers, stat() works on files specified by pathname
While stat() works on open file pointers, fstat() works on files specified by pathname
stat() has nothing to do with files
fstat() has nothing to do with files

ANSWER DOWNLOAD EXAMIANS APP

PHP File System
What should you do if your script is having problem recognizing file endings from a text file saved on a platform different from the one you’re reading it on?

Use fpos()
Use ftok()
Change the auto_detect_line_endings INI setting
Read the file one character at a time
Use a regular expression to detect the last letter of a line

ANSWER DOWNLOAD EXAMIANS APP