LMLPHP后院

使用PHP实现的最简洁快速的登录访问控制

hp.com'; $salt = 'lmlphp'; $token_name = 'lmlphp_token'; $input_name = 'lmlphp_passwd'; if (isset($_POST[$input_name]) && $_POST[$input_name] == $passwd) { setcookie($token_name, md5($passwd.$salt.$time)....

联合索引查询特别慢怎么办?

LL AUTO_INCREMENT, `userid` int(11) NOT NULL, `status` tinyint(3) NOT NULL DEFAULT 1 COMMENT '0 not post, 1 posted' PRIMARY KEY (`id`), KEY `userid_status` (`userid`,`status`) ) ENGINE=InnoDB AUTO_INCREME...

Linode Maintance 前后 IO 对比以及深远影响

start times are also listed within the Cloud Manager. These maintenance windows cannot be altered, postponed, or rescheduled, and rebooting your Linode ahead of time will not remove the need for this mai...

使用Form Iframe Request取代Ajax技术和Jquery的Ajax方法

有个好的想法,如果所有的网站都不使用 Ajax 技术,或者不再为了使用比较成熟的 Ajax 方法而去加载 JQuery。写这篇文章不是说用 Ajax 不好,而是从另外一方面去想,如果我们把东西做的足够简单,或者在特殊情况下可以不使用 Ajax 技术来达到和 Ajax 一样的用户体验。其实,是可以实现的,那就是使用 Iframe。 之前看过一篇文章,有人说过 Google 的天才们发明了 HtmlFile...

安装Gvim解决Linux下Vim不能访问X11剪切板

and +perl +user_commands +cmdline_hist +jumplist +persistent_undo +vertsplit +cmdline_info +keymap +postscript +virtualedit +comments +langmap +printer +visual +conceal +libcall +profile +visualextra +cry...

nginx client intended to send too large body

nginx 出现了报错日志,咋一看,就是 POST 了大数据,只能修改配置了,怎么设置,请看: 报错类似:2021/05/08 12:16:13 [error] 11798#11798: *28202901 client intended to send too large body: 1268248 bytes, client: , server: , request: "POST HTTP/1.1",...

红米 AX6 解锁以及 Clash 折腾记录

迷你,我并没有按照前人的经验来安装管理 UI,发现整个也就大了几兆的空间,核心 Clash 程序几百KB,太完美了,并且能够自动的选择有用的节点。我主要参考了这个帖子,https://qust.me/post/hong-mi-ax6-jie-suo-ssh-an-zhuang-shi-yong-shellclash-jiao-cheng/,虽然帖子已经过时了,但是很有参考价值。帖子里面有另外一个帖子:ht...

如何通过服务端HTTP头解决前端跨域问题

d_header Access-Control-Allow-Headers X-Requested-With; add_header Access-Control-Allow-Methods GET,POST,OPTIONS; # ... }后端 PHP 处理方法示例:if ($env != 'online') { $origin = isset($_SERVER['HTTP_ORIGIN']) ? $_...

油猴子插件指南

ent-end // @connect * // ==/UserScript== (function() { 'use strict'; GM_xmlhttpRequest({ "method": "post", "url": "http://localdev.com:8080/store", "data": $.param({"a":"a"}), "headers":{"Content-Type":"a...

referer 只有域名的问题

再次骂 Google Chrome,总是瞎鸡吧乱改规则。Chrome 真是个蛋疼的浏览器,总是乱改规则,前面遇到过 post 不携带 Cookie 问题,现在又遇到了不携带 Referer 的问题。感觉这帮制定规则的人脑子🧠有问题,你如果是为了安全,可以由网站主来决定,我如果不想携带,那我做个设置,你来瞎搞什么啊,Javascript 本身是可以获取的,我如果要传,不就是麻烦一点吗,一样可以做得到。这个事...
2024-04-27 07:49:28 1714175368 0.006212