Tiedostojärjestelmä
Täältä löydät kaikki tiedostojärjestelmä funktitot.
| Nimi | Oletus | Selite | Muokattava | Esimerkki |
|---|---|---|---|---|
| allow_url_fopen | "1" | Allows fopen()-type functions to work with URLs (available since PHP 4.0.4) | PHP_INI_SYSTEM | Esim |
| user_agent | NULL | Defines the user agent for PHP to send (available since PHP 4.3) | PHP_INI_ALL | Esim |
| default_socket_timeout | "60" | Sets the default timeout, in seconds, for socket based streams (available since PHP 4.3) | PHP_INI_ALL | Esim |
| from | "" | Defines the anonymous FTP password (your email address) | PHP_INI_ALL | Esim |
| auto_detect_line_endings | "0" | When set to "1", PHP will examine the data read by fgets() and file() to see if it is using Unix, MS-Dos or Mac line-ending characters (available since PHP 4.3) | PHP_INI_ALL | Esim |
| Funktio | Selite | Esimerkki |
|---|---|---|
| basename() | Returns the filename component of a path | Esim |
| chgrp() | Changes the file group | Esim |
| chmod() | Changes the file mode | Esim |
| chown() | Changes the file owner | Esim |
| clearstatcache() | Clears the file status cache | Esim |
| copy() | Copies a file | Esim |
| delete() | See unlink() or unset() | Esim |
| dirname() | Returns the directory name component of a path | Esim |
| disk_free_space() | Returns the free space of a directory | Esim |
| disk_total_space() | Returns the total size of a directory | Esim |
| diskfreespace() | Alias of disk_free_space() | Esim |
| fclose() | Closes an open file | Esim |
| feof() | Tests for end-of-file on an open file | Esim |
| fflush() | Flushes buffered output to an open file | Esim |
| fgetc() | Returns a character from an open file | Esim |
| fgetcsv() | Parses a line from an open file, checking for CSV fields | Esim |
| fgets() | Returns a line from an open file | Esim |
| fgetss() | Returns a line, with HTML and PHP tags removed, from an open file | Esim |
| file() | Reads a file into an array | Esim |
| file_exists() | Checks whether or not a file or directory exists | Esim |
| file_get_contents() | Reads a file into a string | Esim |
| file_put_contents() | Writes a string to a file | Esim |
| fileatime() | Returns the last access time of a file | Esim |
| filectime() | Returns the last change time of a file | Esim |
| filegroup() | Returns the group ID of a file | Esim |
| fileinode() | Returns the inode number of a file | Esim |
| filemtime() | Returns the last modification time of a file | Esim |
| fileowner() | Returns the user ID (owner) of a file | Esim |
| fileperms() | Returns the permissions of a file | Esim |
| filesize() | Returns the file size | Esim |
| filetype() | Returns the file type | Esim |
| flock() | Locks or releases a file | Esim |
| fnmatch() | Matches a filename or string against a specified pattern | Esim |
| fopen() | Opens a file or URL | Esim |
| fpassthru() | Reads from an open file, until EOF, and writes the result to the output buffer | Esim |
| fputcsv() | Formats a line as CSV and writes it to an open file | Esim |
| fputs() | Alias of fwrite() | Esim |
| fread() | Reads from an open file | Esim |
| fscanf() | Parses input from an open file according to a specified format | Esim |
| fseek() | Seeks in an open file | Esim |
| fstat() | Returns information about an open file | Esim |
| ftell() | Returns the current position in an open file | Esim |
| ftruncate() | Truncates an open file to a specified length | Esim |
| fwrite() | Writes to an open file | Esim |
| glob() | Returns an array of filenames / directories matching a specified pattern | Esim |
| is_dir() | Checks whether a file is a directory | Esim |
| is_executable() | Checks whether a file is executable | Esim |
| is_file() | Checks whether a file is a regular file | Esim |
| is_link() | Checks whether a file is a link | Esim |
| is_readable() | Checks whether a file is readable | Esim |
| is_uploaded_file() | Checks whether a file was uploaded via HTTP POST | Esim |
| is_writable() | Checks whether a file is writeable | Esim |
| is_writeable() | Alias of is_writable() | Esim |
| lchgrp() | Changes group ownership of symlink | Esim |
| lchown() | Changes user ownership of symlink | Esim |
| link() | Creates a hard link | Esim |
| linkinfo() | Returns information about a hard link | Esim |
| lstat() | Returns information about a file or symbolic link | Esim |
| mkdir() | Creates a directory | Esim |
| move_uploaded_file() | Moves an uploaded file to a new location | Esim |
| parse_ini_file() | Parses a configuration file | Esim |
| parse_ini_string() | Parses a configuration string | Esim |
| pathinfo() | Returns information about a file path | Esim |
| pclose() | Closes a pipe opened by popen() | Esim |
| popen() | Opens a pipe | Esim |
| readfile() | Reads a file and writes it to the output buffer | Esim |
| readlink() | Returns the target of a symbolic link | Esim |
| realpath() | Returns the absolute pathname | Esim |
| realpath_cache_get() | Returns realpath cache entries | Esim |
| realpath_cache_size() | Returns realpath cache size | Esim |
| rename() | Renames a file or directory | Esim |
| rewind() | Rewinds a file pointer | Esim |
| rmdir() | Removes an empty directory | Esim |
| set_file_buffer() | Sets the buffer size of an open file | Esim |
| stat() | Returns information about a file | Esim |
| symlink() | Creates a symbolic link | Esim |
| tempnam() | Creates a unique temporary file | Esim |
| tmpfile() | Creates a unique temporary file | Esim |
| touch() | Sets access and modification time of a file | Esim |
| umask() | Changes file permissions for files | Esim |
| unlink() | Deletes a file | Esim |