当我们想要使用kindeditor的图片上传功能时,有两种选择图片方式,一种是本地选择,一种是在图片空间中选择,图片空间的默认地址是server上的/kindeditor/attached/image/以下。假设想要改变这个路径,须要找到/kindeditor/php/file_manager_js...
分类:
其他好文 时间:
2014-07-13 21:17:42
阅读次数:
219
在Tools=>Build System里选择New Build System...这是会出现一个untitled.sublime-build文件在文件配置如下:{ "cmd": ["你的php.exe的具体路径", "$file"], "file_regex": "^.+ in (.+...
分类:
Web程序 时间:
2014-07-13 20:43:45
阅读次数:
321
FATAL conf.Configuration: error parsing conf file: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence.
14/07/12 23:51:40 ERROR namenode....
分类:
其他好文 时间:
2014-07-13 18:40:22
阅读次数:
291
问题描述:用swfupload上传文件,含有中文名称的文件上传会报错,我用的是获取FileItem对象,用FileItem对象的getName()方法获取文件名称会乱码,试着用request.setCharacterEncoding("UTF-8")及fileName= new String(fileName.getBytes("iso-8859-1";),"UTF-8"); 都不可以,用File...
分类:
其他好文 时间:
2014-07-13 18:30:20
阅读次数:
194
All relative paths in this config are relative to php's install prefix
Pid file
/usr/local/php/logs/php-fpm.pid
Error log file
/usr/local/php/logs/php-fpm.log
Log level
notice
Whe...
分类:
Web程序 时间:
2014-07-13 16:26:05
阅读次数:
248
配置nginx支持php 出现了No input file specified ?
只要修改下安装目录下的 nginx.conf下的
location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index ...
分类:
Web程序 时间:
2014-07-13 16:16:48
阅读次数:
270
项目中要用到采集的数据,所以就先拿CSDN博客来试了试。这里使用Simple HTML DOM(官网)这个库,它能够方便的遍历HTML文档。
php
include_once('simple_html_dom.php');
header('Content-Type:text/html;charset=utf-8');
$html = file_get_htm...
分类:
Web程序 时间:
2014-07-13 15:29:04
阅读次数:
262
对于每一个文件的 file.id and file.incarnation number,重命名文件别名...
分类:
其他好文 时间:
2014-07-13 15:28:26
阅读次数:
233
grep、egrep和正则表达式的总结一、grep的使用1.grep的解释grep为globalsearchregularexpression(RE)andprintouttheline的缩写,即根据用户指定的文本搜索模式对目标文件进行搜索并显示能够被模式匹配到的行的一种文本搜索工具。2.grep的使用格式gerp[options]‘PATTERN‘file,....
分类:
其他好文 时间:
2014-07-13 14:23:22
阅读次数:
194
执行:
./configure --prefix=/usr/local/php --enable-fastcgi --enable-fpm
之后出现
Running FastCGI Process Manager checks
checking for php-fpm config file path... $prefix/etc/php-fpm.conf
checking for ...
分类:
其他好文 时间:
2014-07-13 13:50:43
阅读次数:
205