随笔分类 -  后端

摘要:一、C++参考手册(中文)cppreference https://zh.cppreference.com/ 二、菜鸟教程(中文) https://www.runoob.com/cplusplus/cpp-tutorial.html 三、C++ 的常用库及其文档: 标准模板库(STL) 提供了许多数 阅读全文
posted @ 2023-08-21 13:11 study_php_java_C++ 阅读(570) 评论(0) 推荐(0)
摘要:WEB开发时,在前端通过get / post 方法传递参数的时候 如果实参附带特殊符号,后端接收到的值中特殊符号就会被转义 比如 ur=ssd& 后端接收的却是 ur=ssd& java中可以使用 org.apache.commons.lang3 包中的 StringEscapeUtils. 阅读全文
posted @ 2023-06-30 16:02 study_php_java_C++ 阅读(406) 评论(0) 推荐(0)
摘要:查询包含某值: SELECT * from demo where FIND_IN_SET('3',type); 查询type包含 5或7或9 SELECT * FROM demo where CONCAT (',' ,type, ',') REGEXP ',(5|7|9),' ; 阅读全文
posted @ 2023-01-29 17:57 study_php_java_C++ 阅读(208) 评论(0) 推荐(0)
摘要:ob_end_clean(); ob_start(); //打开文件 $handler = fopen($file_dir, 'r+b'); $file_size = filesize($file_dir); //声明头信息 Header("Content-type: application/oct 阅读全文
posted @ 2022-08-18 20:11 study_php_java_C++ 阅读(42) 评论(0) 推荐(0)
摘要:所有关于 openssl_sign(): supplied key param cannot be coerced into a private/public key、Algorithm not allowed 等错误按照文章来一遍,基本就能解决了 GitHub 用多了,第一反应用 puttygen 阅读全文
posted @ 2022-06-27 14:25 study_php_java_C++ 阅读(712) 评论(0) 推荐(0)
摘要:TP6如果设置了多应用,但是访问都是单应用模式的问题 如下 'domain_bind' => [ 'admin' => 'admin', 'index' => 'index', ], 但是访问 admin.a.net.cn 时还是显示的是index模块的 , 上面一般没问题,但是如果域名是3层的必须 阅读全文
posted @ 2022-01-10 23:45 study_php_java_C++ 阅读(325) 评论(0) 推荐(0)
摘要:1、问题重现 使用单例模式访问类方法,PhpStorm提示类方法Cannot find declaration to go to 2、解决方法 加一句代码注释 注意:注释不能省略变量名 注:成员变量实例化对象也是类似 阅读全文
posted @ 2021-01-14 10:29 study_php_java_C++ 阅读(1678) 评论(0) 推荐(0)
摘要:根据网友的设计进行了部分调整: 用户分为管理员admin表和用户user表 记录操作表数据 增删改: insert/delete/update <?php /** * OperateLog.php * description */ namespace app\service; use think\D 阅读全文
posted @ 2020-12-25 15:21 study_php_java_C++ 阅读(1025) 评论(0) 推荐(0)
摘要:这是七牛技术给的demo <?php require_once __DIR__ . '/../autoload.php'; use \Qiniu\Auth; use Qiniu\Http\Client; $accessKey = 'xxxx'; $secretKey = 'xxxx'; $auth 阅读全文
posted @ 2020-12-08 21:32 study_php_java_C++ 阅读(975) 评论(0) 推荐(0)
摘要:之前的域名类似: www.a.com test.a.com edu.a.com ... 文件config/app.php中 'domain_bind' => [ 'test' => 'test', 'edu' => 'edu', '*' => 'index', ], 配置正常 但是第二个项目的域名类 阅读全文
posted @ 2020-09-13 16:04 study_php_java_C++ 阅读(1281) 评论(0) 推荐(0)
摘要:和TP5生成url方式有区别, 在控制器里 需要加上 ->build(), 如 url('index/arc/list')->build(); 如果是多域名还需要指定域名,如不想加域名可以 url('index/arc/list')->domain('')->build(); 在视图里,我的是多域名 阅读全文
posted @ 2020-07-19 23:27 study_php_java_C++ 阅读(4213) 评论(0) 推荐(0)
摘要:excepInfo: select id,describe from iwebshop_student_problem where id=256 order by id desc -- You have an error in your SQL syntax; check the manual th 阅读全文
posted @ 2020-07-04 12:02 study_php_java_C++ 阅读(207) 评论(0) 推荐(0)
摘要:1. 使用url('route_a_b_c') 这种方式会是全路径 : http://www.test.com/a/b/c 2. 使用path('route_a_b_c') 这种方式只是路径: /a/b/c 阅读全文
posted @ 2020-06-11 18:07 study_php_java_C++ 阅读(201) 评论(0) 推荐(0)
摘要:一. 安装fiddler https://www.telerik.com/fiddler 二. 配置fiddler,一下的ip要根据自己电脑情况设置 然后重启Fiddler,一定要重启!!! 三、配置模拟器 夜神或mumu 首先,你要保证你的代理IP是你电脑的IP,不要输错,另外,端口号也要和Fid 阅读全文
posted @ 2020-05-11 18:04 study_php_java_C++ 阅读(2936) 评论(0) 推荐(0)
摘要:function mycurl($file, $url, $aid) { // 如果文件名是中文名,将中文字符编码转换一下 $file=iconv("UTF-8","gb2312", $file); $data = [ // 还有一种打成数据流的方法. 'pic'=>new \CURLFile($f 阅读全文
posted @ 2020-04-22 11:36 study_php_java_C++ 阅读(1736) 评论(0) 推荐(0)
摘要:protected function _initalize() { header("content-type:text/html;charset=utf-8"); header("Access-Control-Allow-Origin: *"); header("Access-Control-All 阅读全文
posted @ 2020-04-06 17:58 study_php_java_C++ 阅读(691) 评论(0) 推荐(0)
摘要:https://open.weixin.qq.com/connect/oauth2/authorize?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=SCOPE&state=STATE#wechat_re 比如上面的re 阅读全文
posted @ 2020-02-24 17:35 study_php_java_C++ 阅读(3374) 评论(0) 推荐(1)
摘要:之前网站一直正常的,现在提交表单一直301 原因: 前几天把网站http升为https协议,需要去掉连接 // 前内容 把 <form method ="post" action="http://www.test.cn/form001" >改为 <form method ="post" action 阅读全文
posted @ 2020-01-02 16:54 study_php_java_C++ 阅读(495) 评论(0) 推荐(0)
摘要:/** * 去除html标签和空格回车等 * @param $string * @return string */ function cutstr_html($string){ $string = strip_tags($string); $string = trim($string); $stri 阅读全文
posted @ 2019-11-13 17:40 study_php_java_C++ 阅读(747) 评论(0) 推荐(0)
摘要:PHP传给JS字符串用ecsape转换加到url里,又用PHP接收,再用网上找的unscape函数转换一下,这样得到的字符串是UTF-8的,但我需要的是GB2312,于是用iconv转换 开始是这样用的 $str = iconv(‘UTF-8’, ‘GB2312’, unescape(isset($ 阅读全文
posted @ 2019-10-30 16:30 study_php_java_C++ 阅读(1134) 评论(0) 推荐(0)