update : 2015.11.03
php.shukuma.com

검색:
 
 
Create a fifo special file (a named pipe)

posix_mkfifo

(PHP 4, PHP 5)

posix_mkfifoCreate a fifo special file (a named pipe)

설명

bool posix_mkfifo ( string $pathname , int $mode )

posix_mkfifo() creates a special FIFO file which exists in the file system and acts as a bidirectional communication endpoint for processes.

인수

pathname

Path to the FIFO file.

mode

The second parameter mode has to be given in octal notation (e.g. 0644). The permission of the newly created FIFO also depends on the setting of the current umask(). The permissions of the created file are (mode & ~umask).

반환값

성공 시 TRUE를, 실패 시 FALSE를 반환합니다.

주의

Note: 안전 모드일 때, PHP는 조작하려는 파일이나 디렉토리가 실행중인 스크립트와 같은 UID(owner)인지 확인합니다.