CSE :: PHP - CS
- What is the difference between stat() and fstat()?
- flock() is used to unlock a file so that two or more people do not get access to it at the same time.
-
Which of the following functions reads the entire contents of a file?
1. fgets()
2. file_get_contents()
3. fread()
4. readfile()
5. file() - What is the purpose of basename() function?
- 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?
- The ............ function checks if the "end-of-file" (EOF) has been reached.
- The ........... function is used to read a single character from a file.