📄 01c11-1.php
字号:
<?php// A function to return a unique identifier for the user's browserfunction create_unique() { // Read the user agent, IP address, current time, and a random number: $data = $_SERVER['HTTP_USER_AGENT'] . $_SERVER['REMOTE_ADDR'] . time() . rand(); // Return this value hashed via sha1 return sha1($data);}// Echo out the hashed data - This will be different every time.$newhash = create_unique();echo "<pre>{$newhash}</pre>";?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -