HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

posix_mkfifo

Description

The posix_mkfifo of POSIX for PHP creates a fifo special file (a named pipe).

Syntax

posix_mkfifo(
    string $filename,
    int $permissions
): bool

Parameters

filename

Path to the FIFO file.

permissions

The second parameter permissions 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).

Return

Returns true on success or false on failure.