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 a regular expression to detect the last letter of a line Use ftok() Use fpos() Read the file one character at a time Change the auto_detect_line_endings INI setting TRUE ANSWER : ? YOUR ANSWER : ?
Which function is useful when you want to output the executed command’s result? system() out_cmm() out_system() cmm() TRUE ANSWER : ? YOUR ANSWER : ?
Which one of the following function reads a directory into an Array? scandir() readdir() scandirectory() readdirectory() TRUE ANSWER : ? YOUR ANSWER : ?
The ........... function is used to read a single character from a file. fget() fgetc() fgets() fgetf() TRUE ANSWER : ? YOUR ANSWER : ?
Which one of the following PHP function is used to determine a file’s last access time? fileltime() fileatime() filetime() filectime() TRUE ANSWER : ? YOUR ANSWER : ?
Which one of the following function is capable of reading a file into an array? arrfile() file_arr() file() arr_file() TRUE ANSWER : ? YOUR ANSWER : ?
Which one of the following function outputs the contents of a string variable to the specified resource? filewrites() filewrite() fwrites() fwrite() TRUE ANSWER : ? YOUR ANSWER : ?
What is the difference between stat() and fstat()? stat() has nothing to do with files fstat() has nothing to do with files While stat() works on open file pointers, fstat() works on files specified by pathname While fstat() works on open file pointers, stat() works on files specified by pathname fstat() is an alias of stat() TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following functions reads the entire contents of a file?<br/>1. fgets()<br/>2. file_get_contents()<br/>3. fread()<br/>4. readfile()<br/>5. file() Option 2 and 4 Option 1, 3 and 4 Option 3 and 5 Option 2, 4 and 5 TRUE ANSWER : ? YOUR ANSWER : ?
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?<br/>1. file_get_contents()<br/>2. fgets()<br/>3. fopen()<br/>4. file()<br/>5. readfile() Option 1 and 4 Option 3 and 4 Option 2 and 4 Option 1 and 5 TRUE ANSWER : ? YOUR ANSWER : ?