上一页 1 2 3 4 5 6 7 ··· 10 下一页
摘要: 一,安装Elasticsearch-PHP 首先安装Composer,参考:参考博客 在文件夹中新建文件composer.json,写入以下内容: { "require": { "elasticsearch/elasticsearch": "~6.0" } } 保存后在同级目录下执行命令: comp 阅读全文
posted @ 2022-07-16 15:05 何效名 阅读(366) 评论(0) 推荐(0)
摘要: 一,下载安装包 下载Elasticsearch:点击下载,选择Linux版本 二,安装Elasticsearch 解压缩,并进入根目录: 编辑limits.conf内容: vim /etc/security/limits.conf 在文档末尾加入: * soft nofile 65536 * har 阅读全文
posted @ 2022-07-15 16:41 何效名 阅读(311) 评论(0) 推荐(0)
摘要: /** * @param $url 远程图片、文件、网页URL路径 * @param $savePath 要保存的文件夹 * @param $saveName 要保存的文件名 * @return false|string */ function xmsb_saveFromUrl($url, $sav 阅读全文
posted @ 2022-07-13 13:58 何效名 阅读(755) 评论(0) 推荐(0)
摘要: header('Access-Control-Allow-Origin: *'); header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept"); header('Access-Contr 阅读全文
posted @ 2022-06-24 11:32 何效名 阅读(194) 评论(0) 推荐(0)
摘要: function typing(that) { that = typeof(that.length) == 'undefined' ? [that] : that; for(var i = 0; i < that.length; i ++) { let text = that[i]; let str 阅读全文
posted @ 2022-06-21 15:56 何效名 阅读(155) 评论(0) 推荐(0)
摘要: <!doctype html> <html lang="zh"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, 阅读全文
posted @ 2022-06-13 14:42 何效名 阅读(930) 评论(0) 推荐(0)
摘要: var xhr = new XMLHttpRequest(); xhr.open("POST", "http://www.baidu.com", true); xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencode 阅读全文
posted @ 2022-06-06 16:22 何效名 阅读(26) 评论(0) 推荐(0)
摘要: xmsb_doSwitch(); /** * @param start i的起始值,默认为0 * @param max i的最大值,默认为10 * @param interval 每次循环的间隔,默认为3秒 */ function xmsb_doSwitch(start = 0, max = 10, 阅读全文
posted @ 2022-06-05 11:28 何效名 阅读(265) 评论(0) 推荐(0)
摘要: function xmsb_getPathList($path) { $result = []; $paths = scandir($path); foreach($paths as $item) { if($item != '.' && $item != '..') { $encode = mb_ 阅读全文
posted @ 2022-04-10 18:06 何效名 阅读(418) 评论(0) 推荐(0)
摘要: 下载 首先下载 MongoDB Database Tools:点击前往 挑选合适的版本下载,windows选择.msi,linux选择.tgz。 安装 for Windows 双击下载得到的.msi文件。 这一步可以选择MongoDB同目录,方便管理。 将上图所示的bin目录加入环境变量。 安装 f 阅读全文
posted @ 2022-04-06 11:04 何效名 阅读(71) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 10 下一页