Константи, описані нижче — визначені цим розширенням, тож доступні, коли розширення скомпільовано як частина PHP або динамічно підключене під час виконання.
SEEK_SET
(int)
SEEK_CUR
(int)
SEEK_END
(int)
LOCK_SH
(int)
LOCK_EX
(int)
LOCK_UN
(int)
LOCK_NB
(int)
GLOB_BRACE
(int)
Зауваження:
GLOB_BRACE
is not available on some non GNU systems, like Solaris or Alpine Linux.
GLOB_ERR
(int)
GLOB_ONLYDIR
(int)
GLOB_MARK
(int)
GLOB_NOSORT
(int)
GLOB_NOCHECK
(int)
GLOB_NOESCAPE
(int)
GLOB_AVAILABLE_FLAGS
(int)
GLOB_*
flags combined.
Equivalent to 0
| GLOB_BRACE
|
GLOB_MARK
| GLOB_NOSORT
|
GLOB_NOCHECK
| GLOB_NOESCAPE
|
GLOB_ERR
| GLOB_ONLYDIR
Константи | Опис |
---|---|
PATHINFO_ALL
(int)
|
All parts of the pathinfo returned as an associative array. |
PATHINFO_DIRNAME
(int)
|
The path of the directory or file. |
PATHINFO_BASENAME
(int)
|
The name of the directory or the name and extension of the file. |
PATHINFO_EXTENSION
(int)
|
The extension of the file. |
PATHINFO_FILENAME
(int)
|
The name of the file (without the extension) or directory. |
FILE_USE_INCLUDE_PATH
(int)
|
Search for filename in
include_path.
|
FILE_NO_DEFAULT_CONTEXT
(int)
|
|
FILE_APPEND
(int)
|
Append content to existing file. |
FILE_IGNORE_NEW_LINES
(int)
|
Strip EOL characters. |
FILE_SKIP_EMPTY_LINES
(int)
|
Skip empty lines. |
FILE_BINARY
(int)
|
Binary mode.
|
FILE_TEXT
(int)
|
Text mode.
|
INI_SCANNER_NORMAL
(int)
|
Normal INI scanner mode. |
INI_SCANNER_RAW
(int)
|
Raw INI scanner mode. |
INI_SCANNER_TYPED
(int)
|
Typed INI scanner mode. |
FNM_NOESCAPE
(int)
|
Disable backslash escaping. |
FNM_PATHNAME
(int)
|
Slash in string only matches slash in the given pattern. |
FNM_PERIOD
(int)
|
Leading period in string must be exactly matched by period in the given pattern. |
FNM_CASEFOLD
(int)
|
Caseless match. Part of the GNU extension. |
Константи | Опис |
---|---|
UPLOAD_ERR_CANT_WRITE |
Failed to write file to disk. |
UPLOAD_ERR_EXTENSION |
A PHP extension stopped the file upload. PHP does not provide a way to ascertain which extension caused the file upload to stop; examining the list of loaded extensions with phpinfo() may help. |
UPLOAD_ERR_FORM_SIZE |
The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form. |
UPLOAD_ERR_INI_SIZE |
The uploaded file exceeds the upload_max_filesize directive in php.ini. |
UPLOAD_ERR_NO_FILE |
No file was uploaded. |
UPLOAD_ERR_NO_TMP_DIR |
Missing a temporary folder. |
UPLOAD_ERR_OK |
There is no error, the file uploaded with success. |
UPLOAD_ERR_PARTIAL |
The uploaded file was only partially uploaded. |