| |
|
| Modes |
Description |
| r |
Read only. Starts at the beginning of the file |
| r+ |
Read/Write. Starts at the beginning of the file |
| w |
Write only. Opens and clears the contents of file; or creates a new
file if it doesn't exist |
| w+ |
Read/Write. Opens and clears the contents of file; or creates a new
file if it doesn't exist |
| a |
Append. Opens and writes to the end of the file or creates a new
file if it doesn't exist |
| a+ |
Read/Append. Preserves file content by writing to the end of the
file |
| x |
Write only. Creates a new file. Returns FALSE and an error if file
already exists |
| x+ |
Read/Write. Creates a new file. Returns FALSE and an error if file
already exists |
|
| |
|
| Function |
Description |
|
basename() |
Returns the filename component of a path |
|
chgrp() |
Changes the file group |
|
chmod() |
Changes the file mode |
|
chown() |
Changes the file owner |
|
clearstatcache() |
Clears the file status cache |
|
copy() |
Copies a file |
| delete() |
See unlink() or unset() |
|
dirname() |
Returns the directory name component of a path |
|
disk_free_space() |
Returns the free space of a directory |
|
disk_total_space() |
Returns the total size of a directory |
|
diskfreespace() |
Alias of disk_free_space() |
|
fclose() |
Closes an open file |
|
feof() |
Tests for end-of-file on an open file |
|
fflush() |
Flushes buffered output to an open file |
|
fgetc() |
Returns a character from an open file |
|
fgetcsv() |
Parses a line from an open file, checking for
CSV fields |
|
fgets() |
Returns a line from an open file |
|
fgetss() |
Returns a line, with HTML and PHP tags removed, from an
open file |
|
_file.asp">file() |
Reads a file into an array |
|
_file_exists.asp">
file_exists() |
Checks whether or not a file or directory exists |
|
file_get_contents() |
Reads a file into a string |
|
file_put_contents |
Writes a string to a file |
|
_fileatime.asp">
fileatime() |
Returns the last access time of a file |
|
_filectime.asp">
filectime() |
Returns the last change time of a file |
|
_filegroup.asp">
filegroup() |
Returns the group ID of a file |
|
_fileinode.asp">
fileinode() |
Returns the inode number of a file |
|
_filemtime.asp">
filemtime() |
Returns the last modification time of a file |
|
_fileowner.asp">
fileowner() |
Returns the user ID (owner) of a file |
|
_fileperms.asp">
fileperms() |
Returns the permissions of a file |
|
_filesize.asp">filesize() |
Returns the file size |
|
_filetype.asp">filetype() |
Returns the file type |
|
_flock.asp">flock() |
Locks or releases a file |
|
_fnmatch.asp">fnmatch() |
Matches a filename or string against a specified pattern |
|
_fopen.asp">fopen() |
Opens a file or URL |
|
_fpassthru.asp">
fpassthru() |
Reads from an open file, until EOF, and writes the result
to the output buffer |
|
_fputcsv.asp">fputcsv() |
Formats a line as CSV and writes it to an open file |
|
_fputs.asp">fputs() |
Alias of fwrite() |
|
_fread.asp">fread() |
Reads from an open file |
|
_fscanf.asp">fscanf() |
Parses input from an open file according to a specified
format |
|
_fseek.asp">fseek() |
Seeks in an open file |
|
_fstat.asp">fstat() |
Returns information about an open file |
|
_ftell.asp">ftell() |
Returns the current position in an open file |
|
_ftruncate.asp">
ftruncate() |
Truncates an open file to a specified length |
|
_fwrite.asp">fwrite() |
Writes to an open file |
|
_glob.asp">glob() |
Returns an array of filenames / directories matching a
specified pattern |
|
_is_dir.asp">is_dir() |
Checks whether a file is a directory |
|
_is_executable.asp">
is_executable() |
Checks whether a file is executable |
|
_is_file.asp">is_file() |
Checks whether a file is a regular file |
|
_is_link.asp">is_link() |
Checks whether a file is a link |
|
_is_readable.asp">
is_readable() |
Checks whether a file is readable |
|
_is_uploaded_file.asp">
is_uploaded_file() |
Checks whether a file was uploaded via HTTP POST |
|
_is_writable.asp">
is_writable() |
Checks whether a file is writeable |
|
is_writeable() |
Alias of is_writable() |
|
link() |
Creates a hard link |
|
_linkinfo.asp">linkinfo() |
Returns information about a hard link |
|
_lstat.asp">lstat() |
Returns information about a file or symbolic link |
|
_mkdir.asp">mkdir() |
Creates a directory |
|
_move_uploaded_file.asp">
move_uploaded_file() |
Moves an uploaded file to a new location |
|
parse_ini_file() |
Parses a configuration file |
|
pathinfo() |
Returns information about a file path |
|
pclose() |
Closes a pipe opened by popen() |
|
popen() |
Opens a pipe |
|
readfile() |
Reads a file and writes it to the output buffer |
|
readlink() |
Returns the target of a symbolic link |
|
realpath() |
Returns the absolute pathname |
|
_rename.asp">rename() |
Renames a file or directory |
|
_rewind.asp">rewind() |
Rewinds a file pointer |
|
_rmdir.asp">rmdir() |
Removes an empty directory |
|
_set_file_buffer.asp">
set_file_buffer() |
Sets the buffer size of an open file |
|
_stat.asp">stat() |
Returns information about a file |
|
_symlink.asp">symlink() |
Creates a symbolic link |
|
_tempnam.asp">tempnam() |
Creates a unique temporary file |
|
_tmpfile.asp">tmpfile() |
Creates a unique temporary file |
|
_touch.asp">touch() |
Sets access and modification time of a file |
|
_umask.asp">umask() |
Changes file permissions for files |
|
_unlink.asp">unlink() |
Deletes a file |