字符串转换类函数
addcslashes函数:以C语言风格使用反斜线转义字符串中的字符
addslashes函数:使用反斜线引用字符串
chop函数:清除字符串中的连续空格
get_html_translation_table函数:返回htmlspecialchars()函数和htmlentities()函数的转换表
chunk_split函数:将字符串分割成小块
字符串转换类函数
addcslashes函数:以C语言风格使用反斜线转义字符串中的字符
addslashes函数:使用反斜线引用字符串
chop函数:清除字符串中的连续空格
get_html_translation_table函数:返回htmlspecialchars()函数和htmlentities()函数的转换表
chunk_split函数:将字符串分割成小块
TortoiseGit 使用扩展名为ppk的密钥,而不是ssh-keygen生成的rsa密钥。也就是说使用 ssh-keygen -C "username@email.com" -t rsa 产生的密钥在TortoiseGit中不能用。而基于github的开发必须要用到rsa密钥,因此需要用到TortoiseGit的 putty key generator工具来生成既适用于github的rsa密钥也适用于TortoiseGit的ppk密钥
今天一朋友问了这个问题。
讲了半天,不明白。当时就举了个例子:我们公司内部域中的所有电脑要上外部网络,是都要走过一个电脑的,他能控制我们不能乱上一些网站,从而使我们上班时不能上一些娱乐,视频网站什么的,这个服务器是普通代理,也就是正向代理。(著名的GFW!!!)
【案例一】
作者:老王
如果PHP对象存在递归引用,就会出现内存泄漏。这个Bug在PHP里已经存在很久很久了,先让我们来重现这个Bug,代码如下:
在Linux上安装了默认的apache2目录后,想安装apache3,进入安装,
执行了configure,make后
make install时出错:
/bin/sh /usr/local/httpd-2.2.3/srclib/apr/libtool --mode=install /usr/bin/install -c -m 755 libaprutil-1.la /usr/local/apache2/lib
libtool: install: error: cannot install `libaprutil-1.la' to a directory not ending in /usr/local/apache2/lib
make[2]: *** [install] Error 1
CentOS 6.10 编译安装 gdb-7.12.1
int(M): M indicates the maximum display width for integer types.
在 integer 数据类型中,M 表示最大显示宽度。
MySQL数据类型 | 含义(有符号) |
tinyint(m) | 1个字节 范围(-128~127) |
smallint(m) | 2个字节 范围(-32768~32767) |
mediumint(m) | 3个字节 范围(-8388608~8388607) |
int(m) | 4个字节 范围(-2147483648~2147483647) |
bigint(m) | 8个字节 范围(+-9.22*10的18次方) |
int(m)里的m是表示SELECT查询结果集中的显示宽度,并不影响实际的取值范围,没有影响到显示的宽度,不知道这个m有什么用。