PHP File Handling (Filesystem) Functions List

  1. basename — Returns filename component of path
  2. chgrp — Changes file group
  3. chmod — Changes file mode
  4. chown — Changes file owner
  5. clearstatcache — Clears file status cache
  6. copy — Copies file
  7. delete — See
  8. unlink() or
  9. unset()
  10. dirname — Returns directory name component of path
  11. disk_free_space — Returns available space in directory
  12. disk_total_space — Returns the total size of a directory
  13. diskfreespace — Alias of
  14. disk_free_space()
  15. fclose — Closes an open file pointer
  16. feof — Tests for end-of-file on a file pointer
  17. fflush — Flushes the output to a file
  18. fgetc — Gets character from file pointer
  19. fgetcsv — Gets line from file pointer and parse for CSV fields
  20. fgets — Gets line from file pointer
  21. fgetss — Gets line from file pointer and strip HTML tags
  22. file_exists — Checks whether a file exists
  23. file_get_contents — Reads entire file into a string
  24. file — Reads entire file into an array
  25. fileatime — Gets last access time of file
  26. filectime — Gets inode change time of file
  27. filegroup — Gets file group
  28. fileinode — Gets file inode
  29. filemtime — Gets file modification time
  30. fileowner — Gets file owner
  31. fileperms — Gets file permissions
  32. filesize — Gets file size
  33. filetype — Gets file type
  34. flock — Portable advisory file locking
  35. fnmatch — Match filename against a pattern
  36. fopen — Opens file or URL
  37. fpassthru — Output all remaining data on a file pointer
  38. fputs — Writes to a file pointer
  39. fread — Binary-safe file read
  40. fscanf — Parses input from a file according to a format
  41. fseek — Seeks on a file pointer
  42. fstat — Gets information about a file using an open file pointer
  43. ftell — Tells file pointer read/write position
  44. ftruncate — Truncates a file to a given length
  45. fwrite — Binary-safe file write
  46. glob — Find pathnames matching a pattern
  47. is_dir — Tells whether the filename is a directory
  48. is_executable — Tells whether the filename is executable
  49. is_file — Tells whether the filename is a regular file
  50. is_link — Tells whether the filename is a symbolic link
  51. is_readable — Tells whether the filename is readable
  52. is_uploaded_file — Tells whether the file was uploaded via HTTP POST
  53. is_writable — Tells whether the filename is writable
  54. is_writeable — Tells whether the filename is writable
  55. link — Create a hard link
  56. linkinfo — Gets information about a link
  57. lstat — Gives information about a file or symbolic link
  58. mkdir — Makes directory
  59. move_uploaded_file — Moves an uploaded file to a new location
  60. parse_ini_file — Parse a configuration file
  61. pathinfo — Returns information about a file path
  62. pclose — Closes process file pointer
  63. popen — Opens process file pointer
  64. readfile — Outputs a file
  65. readlink — Returns the target of a symbolic link
  66. realpath — Returns canonicalized absolute pathname
  67. rename — Renames a file
  68. rewind — Rewind the position of a file pointer
  69. rmdir — Removes directory
  70. set_file_buffer — Alias of
  71. stream_set_write_buffer()
  72. stat — Gives information about a file
  73. symlink — Creates a symbolic link
  74. tempnam — Create file with unique file name
  75. tmpfile — Creates a temporary file
  76. touch — Sets access and modification time of file
  77. umask — Changes the current umask
  78. unlink — Deletes a file

If you like the post & want to get more then Subscribe our blog posts. Subscribe SunwareTech.net RSS Feed Facebook Twitter Email

Both comments and pings are currently closed.

9 Responses to “PHP File Handling (Filesystem) Functions List”

  1. daigoumee says:

    Pretty nice post. I just stumbled upon your blog and wanted to say that I have really enjoyed browsing your blog posts. In any case I’ll be subscribing to your feed and I hope you write again soon!

  2. Cool Info…

    Anyone can give up, it’s the easiest thing in the world to do. But to hold it together when everyone else would understand if you fell apart, that’s true strength…

  3. great information you write it very clean. I am very lucky to get this tips from you.very well information you write it very clean. I’m very lucky to get this information from you.

  4. lmao meaning says:

    Ok that was really useful

  5. rofl chat says:

    Ok that is very useful

  6. ftw ftw says:

    I have to say this, that was a good read

  7. I used to wonder why I enjoy reading your blog. Now I know..

  8. Lovely. I am happy that I visited this blog.

  9. Iphone 5 says:

    Great information. Lucky me I reach on your internet site by accident, I bookmarked it.

Copyright © Sunware Technologies - Your web partner