代码拉取完成,页面将自动刷新
PHP unique ID generator, based on the Twitter Snowflake algorithm!
// 1) Get the next unique ID.
string unid_next_id(void);
// 2) Change unique ID to time stamp.
int unid_get_time(string id);
// 3) Change unique ID to worker id.
array unid_get_worker_id(string id);
<?php
$id = unid_next_id();
echo $id;
$time = unid_get_time($id);
echo 'date time is: ' . date('Y-m-d H:i:s', $time);
$worker_id = unid_get_worker_id();
echo 'worker id is: ' . $worker_id;
?>
$ cd ./unid
$ phpize
$ ./configure
$ make
$ sudo make install
[unid]
unid.datacenter = 1
unid.twepoch = "2016-07-01 00:00:00"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。