Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Generate a unique ID
<?php uniqid(string $prefix = "", bool $more_entropy = false): 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()