sys_get_temp_dir

Supported Versions: PHP 5 >= 5.2.1, PHP 7, PHP 8
Returns directory path used for temporary files
<?php sys_get_temp_dir(): string
<?php     private function getRandomSocketUri()

    {

        return "unix://" . sys_get_temp_dir() . DIRECTORY_SEPARATOR . uniqid(rand(), true) . '.sock';

    }

}
<?php     private function getRandomSocketUri()

    {

        return "unix://" . sys_get_temp_dir() . DIRECTORY_SEPARATOR . uniqid(rand(), true) . '.sock';

    }

}
<?php     private function getRandomSocketUri()

    {

        return "unix://" . sys_get_temp_dir() . DIRECTORY_SEPARATOR . uniqid(rand(), true) . '.sock';

    }

}
<?php         }




        $path = sys_get_temp_dir() . '/test' . uniqid() . '.sock';




        $server = stream_socket_server('unix://' . $path, $errno, $errstr);
<?php     private function getRandomSocketUri()

    {

        return "unix://" . sys_get_temp_dir() . DIRECTORY_SEPARATOR . uniqid(rand(), true) . '.sock';

    }



    private function tick()