<?php $r = tail('dd.ddmap.log','Baiduspider'); echo '<pre>'; print_r($r); echo '</pre>'; /** * @param $filename * @param false $num * @param int $n * ...
分类:
Web程序 时间:
2021-04-30 12:11:16
阅读次数:
0
转自:http://www.cnblogs.com/lyhabc/archive/2013/02/10/2909761.html 当大家发现数据库查询性能很慢的时候,大家都会想到加索引来优化数据库查询性能, 但是面对一个复杂的SQL语句,找到一个优化的索引组合对人脑来讲,真的不是一件很简单的事。 好 ...
分类:
数据库 时间:
2021-04-29 12:04:50
阅读次数:
0
// 安全文件路径,$fileName:完成文件路径 function securityFilePath($fileName,$read_write = '0777'){ $path = dirname($fileName); if(!file_exists($path)){// 判断路径是否存在, ...
分类:
Web程序 时间:
2021-04-29 11:54:35
阅读次数:
0
全文检索通过sphinx搜索出来的内容是没有问题的。 但是搜索结束之后,文章的排序还是多少有点小问题,是这样,我最开始是使用时间倒叙排序,这样就会有一个小问题就是,我想要的结果,或者说跟我搜索关键词最贴近的结果不会出现在前几条。这个体验很不好。 然后,我这里使用了PHP内置的similar_text ...
分类:
编程语言 时间:
2021-04-28 12:22:57
阅读次数:
0
php命名空间在第一个文件开关以namespace 命名空间名,则当前的文件为该命名空间,当include其他文件的,其他文件的命名空间为文件的开头namespace名,如没有为全局,不因为include继承,查看当前文件的命名空间可用echo '"', __NAMESPACE__, '"'; ph ...
分类:
Web程序 时间:
2021-04-28 12:03:18
阅读次数:
0
系统版本: [root@localhost modules]# rpm -q centos-release centos-release-7-5.1804.el7.centos.x86_64 一、yum安装PHP 1.检查当前安装的PHP包 yum list installed | grep php ...
分类:
Web程序 时间:
2021-04-28 12:02:43
阅读次数:
0
首先我们要先去GitHub下载源码,或者直接使用 git clone https://github.com/CoreSecurity/impacket.git 然后解压缩,进入impacket cd impacket/ 然后运行 python setup.py install 工具都在这个目录里im ...
分类:
其他好文 时间:
2021-04-27 15:22:31
阅读次数:
0
原文地址: https://blog.csdn.net/oToyix/article/details/106170701 repo的路径不要放到root下,放到/usr/share/nginx/下,要不没权限 Centos 7建立本地内网源一、环境二、先配置163base源及阿里epel源三、建立本 ...
分类:
其他好文 时间:
2021-04-27 14:52:02
阅读次数:
0
import pandas as pd import os import re path = "./files/" files = os.listdir(path) # 用于存放Excel,里面的每个元素类型为:pandas.core.frame.DataFrame list_excel = [] ...
分类:
编程语言 时间:
2021-04-27 14:43:38
阅读次数:
0
select a.id,a.userid,c.openid from ko_answer_score a left join (select userid from ko_answer_log where answer_time > '2018-02-24 00:00:00' and answer_ ...
分类:
其他好文 时间:
2021-04-27 14:38:46
阅读次数:
0