随笔分类 -  PHP

php
摘要:我们设置网站权限的时候,有些目录不得不设置让http服务器有写入权限,这样安全隐患就来了。比如discuz x2的 data目录,这个必须要有写入限,论坛才能正常运行,但有的黑客可能就会利用这个目录上传php文件(你会说附件上传已经限制这种格式的文件,但谁知道黑客会利用什么手段上传呢,只有他们清楚了... 阅读全文
posted @ 2015-07-30 09:13 Adtuu 阅读(567) 评论(0) 推荐(0)
摘要:nginx: 在配置文件nginx.conf的http段里加入 server_tokens off; HTTPD.CONFTraceEnable Off <Directory ~ "\.svn">Order allow,denyDeny from all</Directory> HTTPD_DEFA 阅读全文
posted @ 2015-07-30 09:06 Adtuu 阅读(145) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-07-29 17:49 Adtuu 阅读(233) 评论(0) 推荐(0)
摘要:// 这个可以需要在google账号中申请,勾选gcm服务选项$apiKey = 'AIzaSyC6h3ysrn2HDCBqONTo2vKIVVuktIFoxxx';$headers = array( "Content-Type:" . "application/json", ... 阅读全文
posted @ 2015-07-24 09:15 Adtuu 阅读(1417) 评论(0) 推荐(0)
摘要:header('content-type:text/html;charset=utf-8');require_once 'ApnsPHP/Autoload.php';require_once 'ApnsPHP/Push.php';require_once 'ApnsPHP/Message.php';... 阅读全文
posted @ 2015-07-23 14:59 Adtuu 阅读(1240) 评论(0) 推荐(0)
摘要:一、订阅购买验证android端采用google service account进行校验1、打开https://cloud.google.com/console创建一个project;2、打开project->APIs & auth->Credentials点击CREATE NEW CLIENT I... 阅读全文
posted @ 2015-07-23 14:40 Adtuu 阅读(3075) 评论(0) 推荐(1)
摘要:// 正式环境验证地址$ios_verify_url = 'https://buy.itunes.apple.com/verifyReceipt';// 测试环境验证地址$ios_sandbox_verify_url = 'https://sandbox.itunes.apple.com/verif... 阅读全文
posted @ 2015-07-23 14:09 Adtuu 阅读(1451) 评论(0) 推荐(0)
摘要:/** * 消息列队服务 * @author zhou.tingze * @example * -----------------------------------Create---------------------------------------- * $array = array('a'... 阅读全文
posted @ 2015-07-23 13:26 Adtuu 阅读(397) 评论(0) 推荐(0)