(PHP 4, PHP 5, PHP 7)
posix_mkfifo — Create a fifo special file (a named pipe)
$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)인지 확인합니다.