$str = 'QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm0123456789';
$noncestr = substr(str_shuffle($str1), 0,16);
憂傷,php自帶的字符串函數(shù)夠多了,
。。。
$noncestr = substr(str_shuffle($str1), 0,16);
憂傷,php自帶的字符串函數(shù)夠多了,
。。。
2016-11-08
另外如果出現(xiàn)_STORAGE_WRITE_ERROR_:./weixin/Runtime/Cache/Home/54s98fas48asd7f6as4f6as54.php問題則是因?yàn)?mdash;—權(quán)限問題。在根目錄下給 weixin(你自己的文件夾名)文件夾賦予權(quán)限
chmod 0777 -R weixin
即可
chmod 0777 -R weixin
即可
2016-10-13
assign()問題,可能是html文件地址對(duì)不對(duì),display(‘share’)默認(rèn)調(diào)用share.html,應(yīng)該在view文件夾-》Index文件夾-》share.html文件?,html文件對(duì)可能是老師的__construct()這個(gè)方法影響了,我刪了這個(gè)方法就可以調(diào)用到了。
頂部的function __construct(){ }刪除
頂部的function __construct(){ }刪除
2016-10-13