Q.1
The ............ function checks if the "end-of-file" (EOF) has been reached.
Q.2
The ........... function is used to read a single character from a file.
Q.3
What is the purpose of basename() function?
Q.4
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?
Q.5
Which of the following functions retrieve the entire contents of a file in such a way that it can be used as part of an expression?
1. file_get_contents()
2. fgets()
3. fopen()
4. file()
5. readfile()
Q.6
fgets() is used to read a file one line at a time.
Q.7
Which one of the following function operates similarly to fgets(), except that it also strips any HTML and PHP tags form the input?
Q.8
Which one of the following function outputs the contents of a string variable to the specified resource?
Q.9
Which function sets the file filename’s last-modified and last-accessed times?
Q.10
What is the difference between stat() and fstat()?
Q.11
flock() is used to unlock a file so that two or more people do not get access to it at the same time.
Q.12
Which of the following functions reads the entire contents of a file?
1. fgets()
2. file_get_contents()
3. fread()
4. readfile()
5. file()
Q.13
Which function is useful when you want to output the executed command’s result?
Q.14
Which one of the following function reads a directory into an Array?
0 h : 0 m : 1 s