首页 技术教程 实用代码 注册破解 正则表达式 网址导航 电子书籍

生成sessionid和随机密码实例

用这个可以来验证用户和生成随机密码teaman <? //---------------------------------------------------- // Function GetSID() // // Parameters : $nSize number of caracters, default 24 // Return value : 24 caracters string // // Description : This function returns a random string // of 24 caracters that can be used to identify users // on your web site in a more secure way. You can also // use this function to generate passwords. //---------------------------------------------------- function GetSID ($nSize=24) { // Randomize mt_srand ((double) microtime() * 1000000); for ($i=1; $...
类别:网页编程 - PHP技术    查看:102    更新:2014-05-04