
http
gcl_guyunlige
该考虑考虑了
展开
-
php 常用http-header请求头(all)
参考:http://www.cnblogs.com/hellozg/p/9268131.html # 总结 https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Headers/Pragma # Pragma - HTTP | MDN<?phpheader('HTTP/1.1 200 OK')...转载 2018-10-17 10:22:54 · 4271 阅读 · 0 评论 -
HTTP之实现basic认证
header("WWW-Authenticate:Basic realm='Private'");// 实现basic认证header("WWW-Authenticate:Basic realm='Private'");header('HTTP/1.0 401 Unauthorized');print "You are unauthorized to enter this area....转载 2019-07-06 17:45:39 · 1232 阅读 · 0 评论 -
Restful的实例
Apache路由重写: .htaccessRewriteEngine onRewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^(.*)$ index.php/$1 [L]db.php<?php$pdo = new PDO('mysql:host=localho...转载 2019-07-06 17:54:48 · 792 阅读 · 0 评论 -
Apache Nginx 防止盗链
1, Apache Nginx 防止盗链2, http协议相关信息Apache 防止盗链参考 :https://blog.youkuaiyun.com/cnbird2008/article/details/50636861,php.iniLoadModule rewrite_modules/mod_rewrite.so 2, .htaccess1, no_download_pic.p...原创 2019-07-06 19:33:36 · 400 阅读 · 0 评论