摘要:
/** * 计算字符串的长度(非字节) * 先用正则将字符串分解为个体单元,然后再计算单元的个数即得出字符串的长度 * from wordpress * @param string $string * @return int */public static function getUtf8CharL 阅读全文
阅读排行榜
用汇编写asp.net - 基于IL的Asm80386
2009-04-01 18:58 by 斌哥tobin, 388 阅读, 收藏,
摘要:
http://www.viksoe.dk/code/asmil.htm<%@pagelanguage="Asm80386"%><%Str:DB"Testing...",0moveax,-2cmpeax,2jleLabel1xoreax,eaxLabel1:leaesi,Strpushesicall"Response.Write(string)"popesi%><br&... 阅读全文
Wordpress多站点配置
2013-12-05 15:10 by 斌哥tobin, 379 阅读, 收藏,
摘要:
编辑wp-config.php,在“好了!请不要再继续编辑。请保存本文件。使用愉快!”这段话上面写入:define('WP_ALLOW_MULTISITE', true);进入WP后台-----工具-----管理网络,选择“子目录”,然后点击 安装然后会进入到“创建一个wordpress站点网络”面板,里面有详细步骤,按照页面说明进行操作完成后会列出一个Apache Rewrite规则,我在网上找了Nginx的Wordpress多站点rewrite规则location / { server_name_in_redirect off; port_in_redirect off; 阅读全文
[转] PHP计算两个坐标之间的距离, Calculate the Distance Between Two Points in PHP
2015-01-12 14:34 by 斌哥tobin, 378 阅读, 收藏,
摘要:
Calculate the Distance Between Two Points in PHPThere are a lot of applications where it is useful to know the distance between two coordinates. Here,... 阅读全文
centos下iptables与vsftpd的问题
2012-06-12 17:22 by 斌哥tobin, 341 阅读, 收藏,
摘要:
centos下iptables与vsftpd问题在centos5.6下安装iptables后,vsftp连接成功,读取目录失败默认情况下ftp客户端是被动模式iptables上放行的是21端口,但是数据传输端口没有在vsftp配置文件里设置pasv_enable=YESpasv_min_port=10000pasv_max_port=10010在iptables里配置-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 10000:10010 -j ACCEPT重启ftp,iptables,之后ftp连接正常来源:http://record.blog.51c 阅读全文
浙公网安备 33010602011771号