- 博客(5)
- 资源 (1)
- 收藏
- 关注
原创 PHP mysql_real_escape_string的使用陷阱
php函数mysql_real_escape_string用于转义字符串中和SQL 有关的特殊字符,防止SQL注入攻击。参数描述string必需。规定要转义的字符串。connection可选。规定 MySQL 连接。如果未规定,则使用上一个连接。注意:如果没有连接MySQL就是用这个函数那么返回值总是false
2015-04-25 15:55:29
1320
原创 CentOS6.4安装vsftpd
1.安装[root@VM114 download]# yum install vsftpdLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfile* base: mirrors.yun-idc.com* extras: mirrors.yun-idc.com* remi: remi.k
2015-02-05 09:45:02
399
转载 Linux Top命令解析
转自:http://www.jb51.net/LINUXjishu/34604.htmlTOP是一个动态显示过程,即可以通过用户按键来不断刷新当前状态.如果在前台执行该命令,它将独占前台,直到用户终止该程序为止.比较准确的说,top命令提供了实时的对系统处理器的状态监视.它将显示系统中CPU最“敏感”的任务列表.该命令可以按CPU使用.内存使用和执行时间对任务进行排序;而且该命令的很多
2015-02-05 09:37:21
390
原创 httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for Se
[root@VM136 ~]# service httpd restartStopping httpd: [ OK ]Starting httpd: httpd: apr_sockaddr_info_get() failed for VM136.localdomainhttpd: Could not reliably determine the server's fully quali
2015-02-04 13:43:21
513
原创 翻手算法--php实现
/** * 翻转字符串,翻转制定范围的字符。 * @param string $str 待翻转的字符串 * @param int $m 待翻转的子字符串的起始位置。 * @param int $n 待翻转的子字符串的结束位置。 * @return string 翻转后的字符串 */function reverse($str, $m, $n){ $tmp = '
2014-07-27 09:38:00
662
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅