10 2019 档案

摘要:1.加载vue.js,然后 阅读全文
posted @ 2019-10-31 16:46 北往星辰 阅读(7103) 评论(2) 推荐(0)
摘要:注:使用Crontab定时执行php脚本文件 1. 安装crontab yum install crontabs 说明:/sbin/service crond start //启动服务/sbin/service crond stop //关闭服务/sbin/service crond restart 阅读全文
posted @ 2019-10-31 10:53 北往星辰 阅读(3586) 评论(0) 推荐(0)
摘要:命令使用mongo shell 执行 1.mongo中增加新字段 mongo shell 进入后执行use table选中要添加字段的库 db.getCollection('表名').update({}, {$set: {filed1:"",filed2:0}}) 2.删除字段 db.getColl 阅读全文
posted @ 2019-10-30 13:28 北往星辰 阅读(215) 评论(0) 推荐(0)
摘要:public function SafeFilter($arr){ $ra=Array('/([\x00-\x08,\x0b-\x0c,\x0e-\x19])/','/script/','/javascript/','/vbscript/','/expression/','/applet/','/m 阅读全文
posted @ 2019-10-29 13:47 北往星辰 阅读(1291) 评论(0) 推荐(0)
摘要:1.以某字段开头的数据查询条件 $title = input('param.title'); $where['title'] = new \MongoDB\BSON\Regex("^{$title}",'i'); //已title开头的字 2.原生用法: //query 查询列表 $command 阅读全文
posted @ 2019-10-26 11:49 北往星辰 阅读(443) 评论(0) 推荐(0)
摘要:Cd到MongoDb安装目录到bin目录下,执行mongo命令即可,其他命令参考手册:https://www.runoob.com/mongodb/mongodb-create-collection.html 注:不能用的话配置环境变量,路径到mongodb安装目录bin路径之下 阅读全文
posted @ 2019-10-25 20:01 北往星辰 阅读(747) 评论(0) 推荐(0)
摘要:1、Mongodb安装 Mongodb安装参照此文档: https://www.runoob.com/mongodb/mongodb-window-install.html php的mongodb扩展安装: a、根据本地环境下载对应的扩展,下载地址: https://pecl.php.net/pac 阅读全文
posted @ 2019-10-25 19:59 北往星辰 阅读(2334) 评论(0) 推荐(0)