streamWrapper::unlink
Stream 함수 목록
streamWrapper
PHP Manual

# streamWrapper::url_stat

(PHP 4 >= 4.3.2, PHP 5)

streamWrapper::url_stat — Retrieve information about a file

### 설명

public array streamWrapper::url_stat ( string `$path` , int `$flags` )

This method is called in response to all stat() related functions, such as:

- chmod() (only when safe_mode is enabled)
- copy()
- fileperms()
- fileinode()
- filesize()
- fileowner()
- filegroup()
- fileatime()
- filemtime()
- filectime()
- filetype()
- is_writable()
- is_readable()
- is_executable()
- is_file()
- is_dir()
- is_link()
- file_exists()
- lstat()
- stat()
- SplFileInfo::getPerms
- SplFileInfo::getInode
- SplFileInfo::getSize
- SplFileInfo::getOwner
- SplFileInfo::getGroup
- SplFileInfo::getATime
- SplFileInfo::getMTime
- SplFileInfo::getCTime
- SplFileInfo::getType
- SplFileInfo::isWritable
- SplFileInfo::isReadable
- SplFileInfo::isExecutable
- SplFileInfo::isFile
- SplFileInfo::isDir
- SplFileInfo::isLink
- RecursiveDirectoryIterator::hasChildren

### 인수

`path`

  The file URL which should retrieve information about.

`flags`

  Holds additional flags set by the streams API. It can hold one or more of the following values OR'd together.

  Flag | Description
  --- | ---
  STREAM_URL_STAT_LINK | For resources with the ability to link to other resource (such as an HTTP Location: forward, or a filesystem symlink). This flag specified that only information about the link itself should be returned, not the resource pointed to by the link. This flag is set in response to calls to lstat(), is_link(), or filetype().
  STREAM_URL_STAT_QUIET | If this flag is set, your wrapper should not raise any errors. If this flag is not set, you are responsible for reporting errors using the trigger_error() function during stating of the path.

### 반환값

Should return as many elements as stat() does. Unknown or unavailable values should be set to a rational value (usually `0`).

### 오류/예외

이 메쏘드 호출을 실패했을 때 `E_WARNING`이 발생합니다. (즉, 구현되지 않음)

### 주의

> Note: 호출한 함수로 유효한 컨텍스트를 넘겼을 때, streamWrapper->context 프로퍼티가 갱신됩니다.

### 참고

- stat() - Gives information about a file
- streamwrapper::stream_stat - Retrieve information about a file resource

streamWrapper::unlink
Stream 함수 목록
streamWrapper
PHP Manual