What are php file operation functions?
- /*
- * 1. get the path file name
- * String basename (string path [, string suffix])
- * 2. obtain the Directory of the path
- * String dirname (string path)
- * 3. Learn more about paths.
- * Array pathinfo (string path)
- * 4. determine the absolute path.
- * String realpath (string path)
- * 5. determine the file size.
- * Int filesize (string filename)
- * 6. calculate the available disk space
- * Float disk_free_space (string directory)
- * 7. calculate the total disk capacity
- * Float disk_total_space (string directory)
- * 8. determine the last object access time.
- * Int fileatime (string filename)
- * 9. determine the last File change time
- * Int filectime (string filename)
- * 10. determine the last file modification time.
- * Int filemtime (string filename)
- * 11. identify the end character of a file
- * Int feof (string resource)
- * 12. open and close files
- * Resource fopen (string resource, string mode [, int use_include_path [, resource zountext])
- * Boolean fclose (resource filehandle)
- * 13. read files into arrays
- * Array file9string filename [, int user_inlucde_path [, resource context])
- * 14. read the file content into string variables
- * String file_get_contents (string filename [, int use_inlude_path [resource context])
- * 15. read CSV files into arrays
- * Array fgetcsv (resource handle [, int length [, string delimiter [, string enclosure])
- * 16. read a specified number of characters
- * String fgets (resource handle [, int length])
- * 17. remove all HTML and PHP tags from the input.
- * String fgetss (resourcce handle, int length [, string allowable_tags])
- * 18. one character is read at a time.
- * String fgetc (resource handle)
- * 19. Ignore line breaks
- * String freed (resource handle, int length)
- * 20. Read the entire file
- * Int readfile (string filename [, int use_include_path])
- * 21. read files in predefined formats
- * Mixed fscanf (resource handle, string format [, string var1])
- * 22. write strings to files.
- * Int fwrite (resource handle, string [, int length])
- * 23. move the file pointer
- * Int fseek (resource handle, int offset [, int whence])
- *
- * 1. open the directory handle.
- * Resource opendir (string path)
- * 2. close the directory handle.
- * Void closedir (resource directory_handle)
- * 3. parse the directory content
- * String readdir (resource directory_handle)
- * 4. Read the directory into an array.
- * Array scandir (string directory [, int sorting_order [, resource context])
- *
- *
- * 1. delete a directory
- * Int rmdir (string dirname)
- * 2. rename a file
- * Boolean rename (string olename, string newname)
- * 3. touch a file
- * Int touch (sting filename [, int time [, int atime])
- */
|