上一页 1 2 3 4 5 6 ··· 35 下一页
摘要: /** * 打开nginx配置文件nginx.conf,添加以下内容 * 注意层级,在 http{ server { location { #这里添加 } } } 添加 */ location / { if (!-e $request_filename){ rewrite ^/(.*)$ /inde 阅读全文
posted @ 2021-02-14 22:59 孤舟残月浅笑嫣然 阅读(323) 评论(0) 推荐(0) 编辑
摘要: 1.通过curl请求url函数 /** * 通过curl请求url函数,本函数用于测试curl_getinfo()的使用 * * @param string $url 目标网址 * @return string 返回网页内容 */ function request($url) { $ch = cur 阅读全文
posted @ 2021-01-29 00:20 孤舟残月浅笑嫣然 阅读(224) 评论(0) 推荐(0) 编辑
摘要: windows10 安装 composer 1.下载Windows版官方地址:https://getcomposer.org/Composer-Setup.exe 2.国内 composer 镜像地址(阿里云):https://developer.aliyun.com/composer 3.全局配置 阅读全文
posted @ 2021-01-08 12:28 孤舟残月浅笑嫣然 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 使用composer安装barryvdh/laravel-ide-helper $ composer require barryvdh/laravel-ide-helper # Then add to config/app Barryvdh\LaravelIdeHelper\IdeHelperSer 阅读全文
posted @ 2020-12-30 23:18 孤舟残月浅笑嫣然 阅读(133) 评论(0) 推荐(0) 编辑
摘要: php-redis代码库和文档地址:https://github.com/phpredis/phpredis/#readme string 字符串类型: <?php $redis = new Redis(); $redis->connect("127.0.0.1", 6379); $redis->a 阅读全文
posted @ 2020-12-30 00:28 孤舟残月浅笑嫣然 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 这是尾插法单链表,单链表比较适合用来做队列和栈,因为在链表的头和尾时的增删改查的时间复杂度为O(1),而在链表内部的增删改查的平均时间复杂度为O(n)。 #include "stdio.h" #include "stdlib.h" //提供malloc()和free() #include "stri 阅读全文
posted @ 2020-12-20 21:18 孤舟残月浅笑嫣然 阅读(855) 评论(0) 推荐(0) 编辑
摘要: js关键函数:slice() <!DOCTYPE html> <html lang="en"> <head> <title></title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initi 阅读全文
posted @ 2020-12-17 00:13 孤舟残月浅笑嫣然 阅读(167) 评论(0) 推荐(0) 编辑
摘要: php 压缩字符串函数:gzcompress() php解压字符串函数:gzuncompress() 效果图: 代码: <?php $str = "司马法曰:“国虽大,好战必亡;天下虽平,忘战必危。”司马法曰:“国虽大,好战必亡;天下虽平,忘战必危。”司马法曰:“国虽大,好战必亡;天下虽平,忘战必危 阅读全文
posted @ 2020-12-14 00:47 孤舟残月浅笑嫣然 阅读(329) 评论(0) 推荐(0) 编辑
摘要: PDO(PHP Data Objects)是一种在PHP里连接数据库的使用接口。PDO与mysqli曾经被建议用来取代原本PHP在用的mysql相关函数,基于数据库使用的安全性,因为后者欠缺对于SQL注入的防护。PDO的出现让PHP达到了一个新的高度。PDO扩展类库为PHP访问数据库定义了一个轻量级 阅读全文
posted @ 2020-11-15 22:59 孤舟残月浅笑嫣然 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 局域网中有一台服务器,在外网访问时要用端口映射方法,方法有很多,什么路由器设置、花生壳啊都可以,但我用的是nat123。如果nat123客户端在局域网内意外关闭,而你又在遥运的地方又怎么办?所以有必要写一个定时任务来监控nat123服务。 服务器系统:ubuntu 其它系统照着抄,照着改。 1.na 阅读全文
posted @ 2020-11-07 22:04 孤舟残月浅笑嫣然 阅读(482) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 35 下一页