Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the functions operated by PHP files

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

In this article Xiaobian for you to introduce in detail the "PHP file operation of the functions", detailed content, clear steps, details handled properly, I hope that this "PHP file operation of what functions" article can help you solve doubts, the following follow the editor's ideas slowly in-depth, together to learn new knowledge bar.

One: what does the PHP file operation function mean?

There are a variety of functions in PHP for creating, reading, uploading and editing files, so these functions are file manipulation functions and a collection of functions.

Second: what are the PHP file operation functions?

Quick overview of PHP file system functions:

Basename-return the file name part of the path chgrp-change the group to which the file belongs-change the file mode chown-change the owner of the file clearstatcache-clear the file state cache copy-copy the file delete-see unlink or unsetdirname-return the directory part of the disk_free_space-return the free space in the directory disk_total_space-return the total disk size of a directory diskfreespace -alias fclose for disk_free_space-close an open file pointer fdatasync-Synchronizes data (but not meta-data) to the filefeof-Test whether the file pointer reaches the end of the file fflush-output the buffer to the file fgetc-read the characters fgetcsv from the file pointer-read a line from the file pointer and parse the CSV field fgets-read a line from the file pointer-from the text Read a line from the pointer and filter out the HTML flag file_exists-check for the existence of file_get_contents in a file or directory-read the entire file into a string file_put_contents-write a string to the file file-read the entire file into an array fileatime-get the file's last access time filectime-get the file's inode modification time filegroup-get the file's group fileinode- Get file's inodefilemtime-get file modification time fileowner-get file owner fileperms-get file's permission filesize-get file size filetype-get file type flock-portable advisory file lock fnmatch-use pattern matching file name fopen-open file or URLfpassthru-all remaining data at the output file pointer fputcsv-format the line as CSV and write to the file Alias fread for pointer fputs-fwrite-read file (safe for binary files) fscanf-format input fseek from file-locate fstat in file pointer-get file information through open file pointer fsync-Synchronizes changes to the file (including meta-data) ftell-return file pointer read / write location ftruncate-truncate file to a given length fwrite-write file (available Security for binary files) glob-find a file path that matches the pattern is_dir-determine whether a given file name is a directory is_executable-determine whether a given file name is executable is_file-determine whether a given file name is a normal file is_link-determine whether a given file name is a symbolic link is_readable-determine whether a given file name is readable Is_uploaded_file-determine whether a file is uploaded via HTTP POST is_writable-determine whether a given file name is writable is_writeable-alias lchgrp-modify all groups of symbolic links lchown-modify symbolic link owner link-establish a hard link linkinfo-get a connection information lstat-give a file or symbolic link information mkdir-create a new directory Move_uploaded_file-move uploaded file to new location parse_ini_file-parse a configuration file parse_ini_string-parse configuration string pathinfo-return file path information pclose-close process file pointer popen-open process file pointer readfile-output file readlink-return target realpath_cache_get pointed to by symbolic link-get details of real catalog cache Situation realpath_cache_size-get the size of the real path buffer realpath-return the normalized absolute pathname rename-rename a file or directory rewind-reverse the location of the file pointer rmdir-delete the directory set_file_buffer-alias stat of the stream_set_write_buffer-give file information symlink-establish a symbolic link tempnam-establish a file tmpfile with a unique document name- Create a temporary file touch-set the access and modification time of the file umask-change the current umaskunlink-delete the file here This article "what are the functions of PHP file operation" has been introduced, and if you want to master the knowledge points of this article, you still need to practice and use it yourself to understand it. If you want to know more about related articles, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report