PHP program authorization verification development ideas. The following is my idea: apply the php environment configuration of the server to the program, generate a license string, and write the string to the license file code. Even below is my idea to apply the php environment configuration of the server to the program, generate a license string, and write the string to the license file code. Even if the program is not moved to another server, the program cannot run. I hope you will discuss more ......
The code is as follows:
Function authorization ($ seed = ''){
$ Encode = $ _ SERVER ['server _ soft']. $ _ SERVER ['server _ name']. $ _ SERVER ['document _ root'].
$ _ SERVER ['server _ admin']. $ _ SERVER ['server _ ADDR ']. PHP_VERSION. PHP_ OS. _ FILE __;
Return md5 ($ encode );
}
$ Authorization_key = 'jb51. net ';
Echo authorization ($ authorization_key); // here the string verification is generated
$ Authorization_check = array ('dd670852938815f3892d3c511cc8fceb ', 'ddc976cc02bce5c3c22c4d7d201c0cae'); // The authorization string copies the generated character verification here.
If (! In_array (authorization ($ authorization_key), $ authorization_check )){
Die ('sorry, your program has not been authorized by the home !! ');
}
Bytes. Even the program...