<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://www.teamwiki.cn/lib/styles/feed.css" type="text/css"?>
<rss version="2.0">
    <channel>
        <title>TechWiki</title>
        <description></description>
        <link>http://www.teamwiki.cn/</link>
        <lastBuildDate>Tue, 16 Mar 2010 06:20:44 -0500</lastBuildDate>
        <generator>FeedCreator 1.7.2-ppt DokuWiki</generator>
        <image>
            <url>http://www.teamwiki.cn/lib/images/favicon.ico</url>
            <title>TechWiki</title>
            <link>http://www.teamwiki.cn/</link>
        </image>
        <item>
            <title>linux:diff_patch - 创建</title>
            <link>http://www.teamwiki.cn/linux/diff_patch</link>
            <description>示例

 当前目录下有 CodeIgniter_1.7.0_source 和 CodeIgniter_1.7.0 两个文件夹，CodeIgniter_1.7.0是在CodeIgniter_1.7.0_source基础上做过修改的。

diff制作patch 在当前目录执行： 

diff -ruN CodeIgniter_1.7.0_source/ CodeIgniter_1.7.0/ &gt; ci_1.7.0.patch</description>
            <author>kenvin</author>
            <category>linux</category>
            <pubDate>Mon, 15 Mar 2010 01:24:14 -0500</pubDate>
        </item>
        <item>
            <title>linux:start</title>
            <link>http://www.teamwiki.cn/linux/start</link>
            <description>目录

 安装php和系统运行环境

	*  centos php pache mysql环境配置流程   使用yum方式安装apache和php 1)php的版本只有5.1  2)apache指定主目录会提示目录不存在，无访问权限
	*  redhat php nginx mysql配置流程 spawn-fcgi下载地址、php fastcgi方式的configure参数
	*  CentOS yum-fastestmirror镜像安装方法、更改yum源至php5.2.6
	*  Nginx nginx、spawn-fcgi 配置安装方法以及常见脚本
	*  apache+mysql+php安装 mysql源码安装 和…</description>
            <author>kenvin</author>
            <category>linux</category>
            <pubDate>Mon, 15 Mar 2010 01:18:17 -0500</pubDate>
        </item>
        <item>
            <title>linux:apache_mysql_php安装</title>
            <link>http://www.teamwiki.cn/linux/apache_mysql_php%E5%AE%89%E8%A3%85</link>
            <description>apache 2


./configure --prefix=/usr/local/apache2 --enable-module=so --enable-rewrite=shared
make
make install


mysql


tar zxvf mysql-4.1.18.tar.gz
cd mysql-4.1.18
./configure --prefix=/usr/local/mysql --with-charset=gbk --localstatedir=/data/mysql
make
make install
添加mysql用户和组
groupadd mysql
useradd -g mysql mysql
/usr/local/mysql/bin/mysql_install_db
chown -R mysql:mysql /data/mysql/var
cp support-files/my-large.cnf /etc/my.cnf
根据自己需要，修改增加my.cnf的中相关…</description>
            <author>kenvin</author>
            <category>linux</category>
            <pubDate>Sat, 13 Mar 2010 21:35:29 -0500</pubDate>
        </item>
        <item>
            <title>linux:nginx</title>
            <link>http://www.teamwiki.cn/linux/nginx</link>
            <description>nginx相关配置文件下载： [nginx相关配置文件]   

包括： nginx.conf vhosts.conf fastcgi.conf php.cgi.sh restart_httpd.sh

----------

FreeBSD下Nginx安装笔记

安装fastcgi模式php 


./configure --prefix=/site/webserver/php --with-config-file-path=/site/webserver/php/etc --with-mysql=/usr/local/mysql --with-zlib-dir=/usr/local/zlib --with-png-dir=/usr/local --with-jpeg-dir=/usr/local/jpeg6 --with-gd --enable-soap --with-iconv --with-sqlite=shared --enable-sockets --enable-m…</description>
            <author>kenvin</author>
            <category>linux</category>
            <pubDate>Sat, 13 Mar 2010 21:26:42 -0500</pubDate>
        </item>
        <item>
            <title>linux:freebsd</title>
            <link>http://www.teamwiki.cn/linux/freebsd</link>
            <description>本页内容由Kenvin Qu记录FreeBSD安装php环境过程。 --- //[[User:kenvin]] 2009/01/15 12:31//  注意  一定要先安装mysql后安装php

李鑫 说:
 哦～
 其实你可以装一个叫 portconf 的 port，在 ports/ports-mgmt/portconf
 然后可以把配置写到 /usr/local/etc/ports.conf 里面
 这样就不用每次都输入这么长的命令行了

[root@newbbs /usr/home/kenvin]# vi /usr/local/etc/ports.conf
databases/mysql*:       WITH_FAST_MUTEXES=yes|BUILD_OPTIMIZED=yes|WITH_C…</description>
            <author>kenvin</author>
            <category>linux</category>
            <pubDate>Wed, 10 Mar 2010 01:40:01 -0500</pubDate>
        </item>
        <item>
            <title>php:php_sendmail</title>
            <link>http://www.teamwiki.cn/php/php_sendmail</link>
            <description>绝对不乱码的中文邮件


function sendmail($to, $subject, $body) {
	$charset = &quot;utf-8&quot;;
	$email_from = &quot;quwei@soften.cn&quot;;
	//$headers = &quot;From: $email_from\r\nReply-To: $email_from\r\nMIME-Version: 1.0\r\nContent-type: text/plain; charset=$charset\r\n&quot;;
	
	$subject = &quot;=?UTF-8?B?&quot;.base64_encode($subject).&quot;?=&quot;;

	$headers  = &quot;MIME-Version: 1.0&quot; . &quot;\r\n&quot;;
	$headers .= &quot;From: NiceWords &lt;$email_from&gt;&quot; . &quot;\r\n&quot;;
	$headers .= &quot;Reply-To: $email_from&quot; . &quot;\r\n&quot;;
	$headers .= &quot;Content-type: text/htm…</description>
            <author>kenvin</author>
            <category>php</category>
            <pubDate>Tue, 09 Mar 2010 02:03:43 -0500</pubDate>
        </item>
        <item>
            <title>php:start</title>
            <link>http://www.teamwiki.cn/php/start</link>
            <description>php目录 

	*  php5
	*  smarty
	*  php常用函数
	*  php常见问题
	*  PHP开发框架
	*  PHP正则表达式
	*  PHP备份mysql
	*  Discuz研究
	*  mysql导数据
	*  nusoap  PHP Webservice 
	*  php解压zip
	*  pear::Cache Lite
	*  Memcach实现session
	*  CodeIgniter 非常好的PHP框架
	*  PHP兼容 不同PHP环境下的处理
	*  xmlrpc
	*  IIS下PHP运行环境
	*  RSS
	*  JSON
	*  中文十六进制-ASCII
	*  Snoopy   php web client类
	*  serialize
	*  addslashes
	*  smtp_gmail
	…</description>
            <author>kenvin</author>
            <category>php</category>
            <pubDate>Tue, 09 Mar 2010 01:49:24 -0500</pubDate>
        </item>
        <item>
            <title>php:smtp_gmail</title>
            <link>http://www.teamwiki.cn/php/smtp_gmail</link>
            <description>Gmail的SMTP

 开始试了很多次都发不成功，其实是因为 extension=php_openssl.dll 没有开启。Gmail使用的是ssl


$config['protocol'] = 'smtp'; 
$config['smtp_host'] = 'ssl://smtp.gmail.com';
$config['smtp_user'] = 'email@gmail.com';
$config['smtp_pass'] = '******';
$config['smtp_port'] = '465';
$config['smtp_timeout'] = '5';
$config['newline'] = &quot;\r\n&quot;;
$config['crlf'] = &quot;\r\n&quot;;
$this-&gt;email-&gt;initialize($config);


$this-&gt;email-&gt;from('email@gmail.com', 'email');
$this-&gt;email…</description>
            <author>孙腾达</author>
            <category>php</category>
            <pubDate>Fri, 05 Mar 2010 01:56:46 -0500</pubDate>
        </item>
        <item>
            <title>红麦软件 - 创建</title>
            <link>http://www.teamwiki.cn/%E7%BA%A2%E9%BA%A6%E8%BD%AF%E4%BB%B6</link>
            <description>公司介绍

  红麦聚信（北京）软件技术有限公司是一家专注于互联网软件研发及服务的技术公司，公司拥有年轻精悍的技术精英队伍、底蕴资深的技术顾问、高级项目管理专家以及领先的信息数字化技术，在高访问量网站架构、网络爬虫技术、中文信息处理等方面均有深厚的技术积累。</description>
            <author>kenvin</author>
            <pubDate>Sun, 28 Feb 2010 23:50:27 -0500</pubDate>
        </item>
        <item>
            <title>start</title>
            <link>http://www.teamwiki.cn/start</link>
            <description>技术交流
 这里写每天重点关注的一些技术目录 
	*  jquery jquery研究与学习
	*  yahoo_ui_library Yahoo UI Library 学习笔记 
	*  easy_solr 师出名门的Solr开源搜索引擎应用
	*  smarty smarty研究
	*  php常用函数 将平时常用的一些好的函数放这里共享
	*  json 中文GBK编码下JSON解决方案</description>
            <author>kenvin</author>
            <pubDate>Sun, 28 Feb 2010 23:47:59 -0500</pubDate>
        </item>
        <item>
            <title>php:ncr</title>
            <link>http://www.teamwiki.cn/php/ncr</link>
            <description>&amp;#20154;&amp;#27665;&amp;#32593;

 NCR转字符串的方法： 


echo mb_convert_encoding (&quot;&amp;#20154;&amp;#27665;&amp;#32593;&quot;, &quot;GBK&quot;, &quot;HTML-ENTITIES&quot;);


纯函数转换的方法： 


&lt;?php
$str = '&amp;#20154;&amp;#27665;&amp;#32593;';
echo convert_unicode($str);

function u2utf8($c) {
	$str='';
	if ($c &lt; 0x80) {
		$str.=$c;
	} else if ($c &lt; 0x800) {
		$str.=chr(0xC0 | $c&gt;&gt;6);
		$str.=chr(0x80 | $c &amp; 0x3F);
	} else if ($c &lt; 0x10000) {
		$str.=chr(0xE0 | $c&gt;&gt;12);
		$str.=chr(0x80 | $c&gt;&gt;6 &amp; 0x3F);
			$str.=chr(0x80 | $c &amp;…</description>
            <author>kenvin</author>
            <category>php</category>
            <pubDate>Fri, 26 Feb 2010 20:21:59 -0500</pubDate>
        </item>
        <item>
            <title>linux:find</title>
            <link>http://www.teamwiki.cn/linux/find</link>
            <description>atime ctime mtime

	*  文件的 Access time，atime 是在读取文件或者执行文件时更改的。
	*  文件的 Modified time，mtime 是在写入文件时随文件内容的更改而更改的。
	*  文件的 Create time，ctime 是在写入文件、更改所有者、权限或链接设置时随 Inode 的内容更改而更改的。</description>
            <author>李勇</author>
            <category>linux</category>
            <pubDate>Mon, 22 Feb 2010 04:00:15 -0500</pubDate>
        </item>
        <item>
            <title>python:python文件绝对路径 - 创建</title>
            <link>http://www.teamwiki.cn/python/python%E6%96%87%E4%BB%B6%E7%BB%9D%E5%AF%B9%E8%B7%AF%E5%BE%84</link>
            <description>import os,sys
print sys.argv[0]
print os.path.dirname(sys.argv[0])
print os.path.abspath(os.path.dirname(sys.argv[0]))</description>
            <author>kenvin</author>
            <category>python</category>
            <pubDate>Fri, 19 Feb 2010 05:19:48 -0500</pubDate>
        </item>
        <item>
            <title>python:start</title>
            <link>http://www.teamwiki.cn/python/start</link>
            <description>目录 

	*  python的编码
	*  mysqldb 数据库操作实例
	*  抓取与正则 正则表达式
	*  作为服务器shell
	*  gtalk机器人
	*  msn机器人
	*  python-memcached
	*  vim
	*  python as shell
	*  Find WebShell
	*  mod_python apache下运行python
	*  zlib
	*  python文件绝对路径</description>
            <author>kenvin</author>
            <category>python</category>
            <pubDate>Fri, 19 Feb 2010 05:19:12 -0500</pubDate>
        </item>
        <item>
            <title>linux:centos</title>
            <link>http://www.teamwiki.cn/linux/centos</link>
            <description>yum 自动镜像

 ＃yum -y install yum-fastestmirror 等待安装完成即可！

以后就yum自动检测记录镜像的速度了

哈哈。。 很多时候我排第二个的镜像是最快的，到下载文件的时候ctrl+c取消一次，就用第二个了，快！全速，呵呵</description>
            <author>kenvin</author>
            <category>linux</category>
            <pubDate>Fri, 12 Feb 2010 06:51:02 -0500</pubDate>
        </item>
    </channel>
</rss>
