php 将cookie的值写入文件
4 回答

ibeautiful
TA贡献1993条经验 获得超5个赞
用curl函数
获取cookie在设置
curl_setopt($ch, CURLOPT_COOKIEJAR, 1.txt);
访问时用curl获取内容带上cookie
curl_setopt($ch, CURLOPT_COOKIEFILE, 1.txt);

当年话下
TA贡献1890条经验 获得超9个赞
uc_authcode这个是自定义的函数,user/password是你自己定义的,要你自己在写逻辑把它拆出来赋值的,你的这个sercookie只是键是auth,值是uc_authcode("$password\t$discuz_secques\t$uid\t$username。
你还有很多的代码还没有看懂,有些代码是封装的了
- 4 回答
- 0 关注
- 649 浏览
添加回答
举报
0/150
提交
取消