php
zhuoyr
这个作者很懒,什么都没留下…
展开
-
支持中文的PHP字符串截取函数
字符串截取是一个非常常见的编程任务,而往往带中文的字符串截取会经常用到。虽然不难,但是自己写函数实现又耗费时间,这里介绍一个比较好用的字符串截取函数,能够胜任基本的需求了。0102function sysSubStr($string,$length,$append = false)转载 2012-03-30 20:28:24 · 574 阅读 · 0 评论 -
[liunx apache配置]DocumentRoot does not exist解决方法
重启Apache提示DocumentRoot does not exist,类似如下:Stopping httpd: [ OK ]Starting httpd: Warning: DocumentRoot [/var/www/html/test] does not exist奇怪的是路径明明已经存在。查了下发现一般是由于启用了SELINUX导致的,解决方法为禁用SELINUX:转载 2012-12-23 17:34:14 · 9717 阅读 · 2 评论