Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Opens file or URL
<?php fopen(    string $filename,    string $mode,    bool $use_include_path = false,    ?resource $context = null): resource|false
<?php             posix_mkfifo($this->fifoPath, 0600);



            $stream = fopen($this->fifoPath, 'r+');
<?php         } else {

            $stream = fopen('php://temp/maxmemory:0', 'r+');



            fwrite($stream, 'x');

            ftruncate($stream, 0);
<?php         $this->loop = $this->createLoop(true);



        $input = fopen('php://temp/maxmemory:0', 'r+');



        fwrite($input, 'x');

        ftruncate($input, 0);
<?php         posix_mkfifo($this->fifoPath, 0600);



        $stream = fopen($this->fifoPath, 'r+');



        return $stream;

    }