<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>辛佳雨的专栏 - php</title><link>http://blog.csdn.net/microrain/category/227609.aspx</link><description>关于PHP的技术文章</description><dc:language>zh-CN</dc:language><lastUpdateTime>Mon, 31 Mar 2008 22:07:34 GMT</lastUpdateTime><ttl>60</ttl><item><dc:creator>辛佳雨</dc:creator><title>多memcached 和 mysql 主从 环境下PHP开发: 代码详解</title><link>http://blog.csdn.net/microrain/archive/2008/01/19/2052351.aspx</link><pubDate>Sat, 19 Jan 2008 09:20:00 GMT</pubDate><guid>http://blog.csdn.net/microrain/archive/2008/01/19/2052351.aspx</guid><wfw:comment>http://blog.csdn.net/microrain/comments/2052351.aspx</wfw:comment><comments>http://blog.csdn.net/microrain/archive/2008/01/19/2052351.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/microrain/comments/commentRss/2052351.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2052351</trackback:ping><description>	一般的大站通常做法是 拿着内存当数据库来用(memcached). 和很好的读 写分离 备份机制 (mysql 的主从) 在这样的环境下我们怎么进行PHP开发呢. 本人不太会讲话.所以还是帖代码吧. 刚在linux 的 VIM 里写的一个 demo 调试通过. 也同时希望大家拍砖 , 使用PHP5 写的. PHP4写出来怕大家说我落后了 复制PHP内容到剪贴板PHP代码: &amp;amp;lt;?php&amp;amp;lt;br &amp;gt;$memcached = array( //用memcached 的 多 进程模拟 多台memcached 服务器 cn en 为 内存服务器名 ’cn’=&amp;amp;gt;array(’192.168.254.144’,11211), ’en’=&amp;amp;gt;array(’192.168.254.144’,11212) ); $mysql = array( // mysql 的主从 我的环境是 ： xp 主 linux 从 mysql 5 php5 ’master’=&amp;amp;gt;array(’192.168.254.213’,’root’,’1’,’myd&lt;img src ="http://blog.csdn.net/microrain/aggbug/2052351.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>辛佳雨</dc:creator><title>PHP内存缓存功能memcached</title><link>http://blog.csdn.net/microrain/archive/2008/01/19/2052350.aspx</link><pubDate>Sat, 19 Jan 2008 09:18:00 GMT</pubDate><guid>http://blog.csdn.net/microrain/archive/2008/01/19/2052350.aspx</guid><wfw:comment>http://blog.csdn.net/microrain/comments/2052350.aspx</wfw:comment><comments>http://blog.csdn.net/microrain/archive/2008/01/19/2052350.aspx#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://blog.csdn.net/microrain/comments/commentRss/2052350.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2052350</trackback:ping><description>	一、memcached 简介在很多场合，我们都会听到 memcached 这个名字，但很多同学只是听过，并没有用过或实际了解过，只知道它是一个很不错的东东。这里简单介绍一下，memcached 是高效、快速的分布式内存对象缓存系统，主要用于加速 WEB 动态应用程序。二、memcached 安装首先是下载 memcached 了，目前最新版本是 1.1.12，直接从官方网站即可下载到 memcached-1.1.12.tar.gz。除此之外，memcached 用到了 libevent，我下载的是 libevent-1.1a.tar.gz。接下来是分别将 libevent-1.1a.tar.gz 和 memcached-1.1.12.tar.gz 解开包、编译、安装：# tar -xzf libevent-1.1a.tar.gz # cd libevent-1.1a # ./configure --prefix=/usr # make # make install # cd .. # tar -xzf memcached-1.1.12.tar.gz # cd memcached&lt;img src ="http://blog.csdn.net/microrain/aggbug/2052350.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>辛佳雨</dc:creator><title>详细讲解PHP的日期时间函数date()</title><link>http://blog.csdn.net/microrain/archive/2008/01/12/2038770.aspx</link><pubDate>Sat, 12 Jan 2008 01:13:00 GMT</pubDate><guid>http://blog.csdn.net/microrain/archive/2008/01/12/2038770.aspx</guid><wfw:comment>http://blog.csdn.net/microrain/comments/2038770.aspx</wfw:comment><comments>http://blog.csdn.net/microrain/archive/2008/01/12/2038770.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/microrain/comments/commentRss/2038770.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2038770</trackback:ping><description>	导读： 　　大写Y表示年四位数字，而小写y表示年的两位数字； 　　小写m表示月份的数字(带前导)，而小写n则表示不带前导的月份数字。 　　echo date('Y-M-j'); 　　2007-Feb-6 　　echo date('Y-m-d'); 　　2007-02-06 　　大写M表示月份的3个缩写字符，而小写m则表示月份的数字(带前导0); 　　没有大写的J，只有小写j表示月份的日期，无前导o；若需要月份带前导则使用小写d。 　　echo date('Y-M-j'); 　　2007-Feb-6 　　echo date('Y-F-jS'); 　　2007-February-6th 　　大写M表示月份的3个缩写字符，而大写F表示月份的英文全写。(没有小写f) 　　大写S表示日期的后缀，比如“st”、“nd”、“rd”和“th”，具体看日期数字为何。 　　小结： 　　表示年可以用大写的Y和小写y; 　　表示月可以用大写F、大写M、小写m和小写n(分别表示字符和数字的两种方式); 　　表示日可以用小写d和小写j，大写S表示日期的后缀。 　　2，时:分:秒 　　默认情况下，PHP解释&lt;img src ="http://blog.csdn.net/microrain/aggbug/2038770.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>辛佳雨</dc:creator><title>amfphp连接数据库的实用方法</title><link>http://blog.csdn.net/microrain/archive/2007/08/15/1743459.aspx</link><pubDate>Wed, 15 Aug 2007 06:56:00 GMT</pubDate><guid>http://blog.csdn.net/microrain/archive/2007/08/15/1743459.aspx</guid><wfw:comment>http://blog.csdn.net/microrain/comments/1743459.aspx</wfw:comment><comments>http://blog.csdn.net/microrain/archive/2007/08/15/1743459.aspx#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://blog.csdn.net/microrain/comments/commentRss/1743459.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1743459</trackback:ping><description>基于Flex与amfphp进行程序开发是一件很酷的事。关于amfphp连接数据库，很多例子给的都是直接在程序进行数据库连接。从php5.1开始，php内部默认加载了pdo数据库操作库，听说从php6开始，php只支持pdo进行数据库的操作。本文介绍的amfphp连接数据库的方式就是基于pdo进行连接。&lt;img src ="http://blog.csdn.net/microrain/aggbug/1743459.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>辛佳雨</dc:creator><title>基于PHP开发WEB程序之工具推荐</title><link>http://blog.csdn.net/microrain/archive/2006/09/25/1280643.aspx</link><pubDate>Mon, 25 Sep 2006 15:43:00 GMT</pubDate><guid>http://blog.csdn.net/microrain/archive/2006/09/25/1280643.aspx</guid><wfw:comment>http://blog.csdn.net/microrain/comments/1280643.aspx</wfw:comment><comments>http://blog.csdn.net/microrain/archive/2006/09/25/1280643.aspx#Feedback</comments><slash:comments>7</slash:comments><wfw:commentRss>http://blog.csdn.net/microrain/comments/commentRss/1280643.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1280643</trackback:ping><description>　　开发php程序有很多工具，很多人采用的基本文本文件的编辑器。在windows下用editplus、 UltraEdit等，在linux用vi、gedit等。但是这些文本编辑器调式PHP的时候并不方便。而 ZendStudio虽然很好用，但是是收费软件，并且对于中文支持不如eclipse的好。&lt;img src ="http://blog.csdn.net/microrain/aggbug/1280643.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>辛佳雨</dc:creator><title>在Resin环境采用PHP链接MySQL数据库</title><link>http://blog.csdn.net/microrain/archive/2006/06/10/785488.aspx</link><pubDate>Sat, 10 Jun 2006 08:39:00 GMT</pubDate><guid>http://blog.csdn.net/microrain/archive/2006/06/10/785488.aspx</guid><wfw:comment>http://blog.csdn.net/microrain/comments/785488.aspx</wfw:comment><comments>http://blog.csdn.net/microrain/archive/2006/06/10/785488.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/microrain/comments/commentRss/785488.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=785488</trackback:ping><description>下面将提供一些简单的步骤，教你如何在Resin下使用PHP与mysql数据库的连接操作。&lt;img src ="http://blog.csdn.net/microrain/aggbug/785488.aspx" width = "1" height = "1" /&gt;</description></item></channel></rss>