10 2014 档案
摘要:转自:http://www.tianzhigang.com/article.asp?id=280PHP的数据类型转换属于强制转换,允许转换的PHP数据类型有:(int)、(integer):转换成整形(float)、(double)、(real):转换成浮点型(string):转换成字符串(bool...
阅读全文
摘要:转自:http://blog.csdn.net/love__coder/article/details/66591031,安装NERDTree插件 先下载,官网:http://www.vim.org/scripts/script.php?script_id=1658 解压缩之后,把plugi...
阅读全文
摘要:转自:http://blog.sina.com.cn/s/blog_610997850100mwv8.html今天碰到个问题要用phpmyadmin导入1G的数据,但是在怎么都导入不了,用命令行就可以轻松搞定了。用mysql source命令可以导入比较大的文件。mysql>use dbtest;m...
阅读全文
摘要:转自:http://www.cnblogs.com/afant/archive/2009/03/11/1408745.html:s/^.*$/\L&/100##将100行内的小写转换成大写vi/vim 中可以使用 :s 命令来替换字符串。:s/vivian/sky/ 替换当前行第一个 vivian ...
阅读全文
摘要:名称svn move — 移动一个文件或目录。概要svn move SRC DST描述这个命令移动文件或目录到你的工作拷贝或者是版本库。提示这个命令同svn copy加一个svn delete等同。注意Subversion不支持在工作拷贝和URL之间拷贝,此外,你只可以一个版本库内移动文件—Subv...
阅读全文
摘要:转自:http://www.cnblogs.com/cnblogsfans/archive/2010/03/21/1690838.htmlsvn 命令共同的选项--targets list 读取list并将其解释为一个将要操作的参数列表--non-recurisive, –N 只操作单个目录,不处理...
阅读全文
摘要:1. file.tar.gzgzip -dc file.tar.gz | tar tvf -2. file.tar.bz2bzip2 -dc file.tar.bz2 |tar tvf -3. file.tartar tvf file.tar
阅读全文
摘要:文件转自:http://www.2cto.com/os/201303/197829.htmlls按时间排序输出文件列表首先,ls --help查看ls相关的与时间排序相关的参数:> ls --help|grep -E "time|sort"如果不指定 -cftuSUX 或 --sort 任何一个选项...
阅读全文
摘要:http://php.net/manual/en/function.strtr.php "-", "hello" => "hi", "hi" => "hello");echo strtr("hi all, I said hello", $trans);?>The above example will...
阅读全文
摘要:在em_twitter表中增加一个字段。1,添加一个字段isImportantalter table em_twitter add isImprotant int(4) not null default 0;2,把字段isImprotant 改成isImportantalter table em_t...
阅读全文
摘要:haomeiv配置log_format www.haomeiv.com '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' ...
阅读全文
摘要:rewrite ^/(post|record|sort|author|page)-([0-9]+)\.html$ /index.php?$1=$2;rewrite ^/tag-(.+)\.html$ /index.php?tag=$1;把index.html 强制转换到index.php页面rewr...
阅读全文
摘要:转自:http://www.76ku.cn/articles/archives/317rewite.在server块下,会优先执行rewrite部分,然后才会去匹配location块server中的rewrite break和last没什么区别,都会去匹配location,所以没必要用last再发起...
阅读全文