1.PHP 函数:阻止 SQL 注入 SQL 注入或者 SQLi 常见的攻击网站的手段,使用下面的代码可以帮助你防止 对用户输入的数据做转义: 输出做stripslashes,htmlspecialchars是在输出HTML时防御XSS攻击的,区别于上面说的防御SQL注入 2.用php实例进行mys ...
分类:
Web程序 时间:
2017-03-09 00:31:01
阅读次数:
156
今天工作的时候,为了检查一台服务器的序列号,没必要在跑到机房里了,所以在系统下就可以看机器序列号了。如下: 1、linux取序列号: 命令执行:dmidecode |grep "Serial Number" 2、windows取序列号: strComputer = "."Set objWMIServ ...
分类:
其他好文 时间:
2017-03-08 15:32:06
阅读次数:
1680
追问 为什么可以写成这样3<afile ,而不是exec 3<afile,而且不写在循环的前面呢? 追答 用现在的写法,相当于只对 while 语句进行重定向,while结束后,3,4 就没有了。 如果在 while 前面用 exec 3<afile 4<bfile 了话,从 exec 之后直到脚本 ...
分类:
其他好文 时间:
2017-03-08 14:03:32
阅读次数:
214
结果: 最后补充: cassandra的update和mongo的upsert效果一样!如果where的条件不满足,则会insert into! 见:http://stackoverflow.com/questions/17348558/does-an-update-become-an-implie ...
分类:
编程语言 时间:
2017-03-08 13:54:18
阅读次数:
542
先在QT5.7 编译到开发板上,报错 enumtest.h: error: ISO C++ forbids declaration of 'Q_ENUM' with no type [-fpermissive] Q_ENUM(PINYINENUM)开发板上QT版本5.2,没有这个Q_ENUM,只能另 ...
分类:
编程语言 时间:
2017-03-08 13:22:36
阅读次数:
476
若下载文件的url有重定向,可先调用第一个方法 $imgpath = "http://www.baidu.com/img/bdlogo.png"; $url = $this->getLocationUrl($imgpath); $result = $this->GrabFile($url,"E:\T ...
分类:
Web程序 时间:
2017-03-08 13:01:10
阅读次数:
3260
忙活了好长时间,很纳闷为什么加载不上驱动,驱动包、hive的依赖包、hadoop的依赖包也引入了,各种百度最后: hadoop-2.2.0/share/hadoop/common/hadoop-common-2.2.0.jar$HIVE_HOME/lib/hive-exec-0.11.0.jar $ ...
分类:
系统相关 时间:
2017-03-07 23:10:14
阅读次数:
210
更新docker时间:1.docker run -d -v /etc/localtime:/etc/localtime:ro [IMAGE] 2.重启,docker-compose up -d 3.docker exec [container id] date ...
分类:
其他好文 时间:
2017-03-07 11:52:19
阅读次数:
222
Hi, last week a customer had the problem that he wants to connect to the administration interface of a Brocade FC Switch but the Java Applet did not s ...
分类:
移动开发 时间:
2017-03-07 10:43:27
阅读次数:
418
[Desktop Entry] Type=Application Name=eclipse Comment=Java开发工具 Exec=/home/iszhengk/developer/Tools/eclipse/eclipse Icon=/home/iszhengk/Pictures/myicon ...
分类:
系统相关 时间:
2017-03-07 08:43:58
阅读次数:
177