Home / CSE / PHP - CS :: File System in PHP

CSE :: PHP - CS

  1. The filesize() function returns the file size in ___________

  2. A.

     bits

    B.

     bytes

    C.

     kilobytes

    D.

     gigabytes

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Which one of the following PHP function is used to determine a file’s last access time?

  4. A.

     fileltime()

    B.

     filectime()

    C.

     fileatime()

    D.

     filetime()

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. Which one of the following function is capable of reading a file into an array?

  6. A.

     file()

    B.

     arrfile()

    C.

     arr_file()

    D.

     file_arr()

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. Which one of the following function is capable of reading a file into a string variable?

  8. A.

     file_contents()

    B.

     file_get_contents()

    C.

     file_content()

    D.

     file_get_content()

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Which one of the following function is capable of reading a specific number of characters form a file?

  10. A.

     fgets()

    B.

     fget()

    C.

     fileget()

    D.

     filegets()

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. Which one of the following function operates similarly to fgets(), except that it also strips any HTML and PHP tags form the input?

  12. A.

     fgetsh()

    B.

     fgetsp()

    C.

     fgetsa()

    D.

     fgetss()

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. Which one of the following function outputs the contents of a string variable to the specified resource?

  14. A.

     filewrite()

    B.

     fwrite()

    C.

     filewrites()

    D.

     fwrites()

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Which function sets the file filename’s last-modified and last-accessed times?

  16. A.

     sets()

    B.

     set()

    C.

     touch()

    D.

     touched()

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. Which function is useful when you want to output the executed command’s result?

  18. A.

     out_cmm()

    B.

     out_system()

    C.

     cmm()

    D.

     system()

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. Which one of the following function reads a directory into an Array?

  20. A.

     scandir()

    B.

     readdir()

    C.

     scandirectory()

    D.

     readdirectory()

    View Answer

    Workspace

    Discuss Discuss in Forum