tags:tar,bzip2,gzip,bz2,gz
压缩
tar -cf xxx.tar dir1 file2 >xxx.tar
bzip2 xxx.tar > create xxx.tar.bz2 rm xxx.tar
gzip xxx.tar >create xxx.tar.gz rm xxx.tar
解压
tar -xf xxx.tar
tar -xzf xxx.tar.gz
tar -xjf xxx.tar.bz2
bunzip2 xxx.bz2 > create xxx rm xxx.bz2
gunzip xxx.gz > create xxx rm xxx.gz
查看
tar -tvf xxx.tar
technorati tags: tar, bzip2, gzip, bz2, gz
tags:柱状图,统计图表,html,feedburner
<head>
<style>
/* undohtml.css */
/* (CC) 2004 Tantek Celik. Some Rights Reserved. */
/* http://creativecommons.org/licenses/by/2.0 */
/* This style sheet is licensed under a Creative Commons License. */
:link,:visited { text-decoration:none }
ul,ol { list-style:none }
h1,h2,h3,h4,h5,h6,pre,code { font-size:1em; }
ul,ol,li,dl,dt,dd,h1,h2,h3,h4,h5,h6,pre,form,body,html,p,blockquote,fieldset,input
{ margin:0; padding:0 }
a img,:link img,:visited img { border:none }
address { font-style:normal }
</style>
<style>
/* GENERAL */
a.extLink {
background: url(/fb/i/icn/arrow_up.gif) no-repeat;
[...]
tags:sqlite,learn,php,ez_sql
连接 sqlite 数据库
$ php -r ‘dl("sqlite.so"); \
$error="";\
if($db=sqlite_open("sqlite_test.db",0666,$error)){\
sqlite_close($db);\
echo "sqlite closed!\n";\
}else{echo $error;};’
# 如果指定的sqlite数据库不存在,则创建之
使用sqlite
<?php
dl("sqlite.so");
$db_file = "test.db";
$db = sqlite_open($db_file,0666,$con_error); #con_error is return!
if($db === false){
die($con_error);
}
//$query_string = "select * from sqlite_master ";
//query($db,"CREATE TABLE test_table ( MyColumnA INTEGER PRIMARY KEY, MyColumnB TEXT(32) );");
query($db,"select * from sqlite_master ");
query($db,"select * from test_table ");
query($db,’INSERT INTO test_table (MyColumnB) [...]
author: fallseir.lee (fallseir at gmail.com)
tags:php,gd,画图
备份以前的php安装配置
$ php -r "phpinfo();"
|awk ‘/Configure Command/’ # 获取当前安装的php的配置
{ Configure Command =>
‘./configure’
‘–with-apxs=/home/apache/bin/apxs’
‘–enable-track-vars’
‘–with-iconv’
‘–with-mbstring’
‘–with-sqlite’
‘–without-mysql’
‘–with-curl’}
添加gd包支持
由于gd中的png需要zlib
查找zlib的位置
$ whereis zlib
{zlib: /usr/include/zlib.h
/usr/share/man/man3/zlib.3.gz}
$ sudo ./configure
–with-apxs=/home/apache/bin/apxs
–with-apxs=/home/apache/bin/apxs
[...]