PHP
通者归来
这个作者很懒,什么都没留下…
展开
-
php部署ueditor上传图片返回未知错误(error 6)
1、主要是因为php.ini 中的 upload_tmp_dir 参数,上传临时目录没有指定,或目录没有写权限。 2. 用文本编辑器打开 /usr/local/php/etc/php.ini 找到以下位置: upload_tmp_dir = /data/wwwroot/tmp原创 2015-12-16 17:48:49 · 844 阅读 · 0 评论 -
正则表达式自已加深理解
1、preg_match_all("/]*?href=\"([^>]+?)\"[^>]*?>.+?\/a>/i",$urls,$match)2、[^>]表示非>号的其它字符3、+?懒惰匹配,只匹配第一次就行了4、()子表达式,在PHP返回数据中 $match[1]中5、/i忽略大小字百度百科的:------------------------------------原创 2016-01-12 11:27:35 · 376 阅读 · 0 评论