<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>紫贝壳</title>
	<atom:link href="http://wordpress.conch520.com.cn/wp-feed.php" rel="self" type="application/rss+xml" />
	<link>http://wordpress.conch520.com.cn</link>
	<description>我们共同的窝！</description>
	<pubDate>Wed, 19 Nov 2008 09:28:54 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
	<language>en</language>
			<item>
		<title>导出csv文件</title>
		<link>http://wordpress.conch520.com.cn/2008/11/14/%e5%af%bc%e5%87%bacsv%e6%96%87%e4%bb%b6/</link>
		<comments>http://wordpress.conch520.com.cn/2008/11/14/%e5%af%bc%e5%87%bacsv%e6%96%87%e4%bb%b6/#comments</comments>
		<pubDate>Fri, 14 Nov 2008 05:26:17 +0000</pubDate>
		<dc:creator>maosea0125</dc:creator>
		
		<category><![CDATA[php]]></category>

		<category><![CDATA[csv]]></category>

		<guid isPermaLink="false">http://wordpress.conch520.com.cn/?p=902</guid>
		<description><![CDATA[网上找的，还不错，留下来备用

[-]?View Code PHP&#60; ?php
/*
ini_set(&#34;error_reporting&#34;,E_ALL);
ini_set(&#34;display_startup_errors&#34;,1);
ini_set(&#34;display_errors&#34;,1);
*/
function escapeCSV&#40;$str&#41;&#123;
  $str = str_replace&#40;array&#40;',','&#34;',&#34;\n\r&#34;&#41;,array&#40;'','&#34;&#34;',''&#41;,$str&#41;;
  if&#40;$str == &#34;&#34;&#41;&#123;
    $str = '&#34;&#34;';
  &#125;
  return $str;
&#125;
&#160;
function iconvstr&#40;$str&#41;&#123;
	return iconv&#40;'utf-8','gb2312',escapeCSV&#40;$str&#41;&#41;;
&#125;
&#160;
$intent = in_array&#40;$_GET&#91;'intent'&#93;,array&#40;'y','n'&#41;&#41; ? $_GET&#91;'intent'&#93; : '';
&#160;
if&#40;$intent != ''&#41;&#123;
	$query_cond = &#34; WHERE `intent` ='$intent' &#34;;
&#125;else&#123;
	$query_cond = '';
&#125;
&#160;
$result = mysql_query&#40;&#34;SELECT * FROM `{$db_fix}report` $query_cond ORDER BY `id` DESC&#34;&#41;;
&#160;
$filename = date&#40;'YmdHis'&#41;.'.csv';
&#160;
$data = [...]]]></description>
		<wfw:commentRss>http://wordpress.conch520.com.cn/2008/11/14/%e5%af%bc%e5%87%bacsv%e6%96%87%e4%bb%b6/feed/</wfw:commentRss>
		</item>
		<item>
		<title>symfony objects_for_select</title>
		<link>http://wordpress.conch520.com.cn/2008/11/10/symfony-objects_for_select/</link>
		<comments>http://wordpress.conch520.com.cn/2008/11/10/symfony-objects_for_select/#comments</comments>
		<pubDate>Mon, 10 Nov 2008 04:41:05 +0000</pubDate>
		<dc:creator>maosea0125</dc:creator>
		
		<category><![CDATA[php]]></category>

		<category><![CDATA[select]]></category>

		<category><![CDATA[symfony]]></category>

		<guid isPermaLink="false">http://wordpress.conch520.com.cn/?p=901</guid>
		<description><![CDATA[Object_select_tag助手根据传递过来的方法名猜测相关的peer类名（根据getAuthorID方法得到AuthorPeer类），你也可以通过第三个参数制定你自己的类作为关联类。的内容文本是对象类的__toString()方法的结果（如果$author->__toString方法不存在则使用主键替代）。另外可以通过Criteria来限定获取的条数。最后可以加入空选项或自定义选项显示在下拉列表的顶部，看下面的例子：

[-]?View Code PHP// 基本语法
&#160;
&#60; ?php echo object_select_tag&#40;$article, 'getAuthorId'&#41; ?&#62;
&#160;
// 通过方法AuthorPeer::doSelect(new Criteria())
&#160;
&#160;
&#160;
// 修改peer类
&#160;
&#60; ?php echo object_select_tag&#40;$article, 'getAuthorId', 'related_class=Foobar'&#41; ?&#62;
&#160;
// 通过方法FoobarPeer::doSelect(new Criteria())
&#160;
&#160;
&#160;
// 修改Peer方法
&#160;
&#60; ?php echo object_select_tag&#40;$article, 'getAuthorId','peer_method=getMostFamousAuthors'&#41; ?&#62;
&#160;
// 通过方法AuthorPeer::getMostFamousAuthors(new Criteria())
&#160;
&#160;
&#160;
// 在列表顶部添加 &#60;option value=&#34;&#34;&#62;&#38;nbsp;&#60;/option&#62; 
&#160;
&#60; ?php echo object_select_tag&#40;$article, 'getAuthorId', 'include_blank=true'&#41; ?&#62;
&#160;
&#160;
&#160;
//在列表顶部添加&#60;option value=&#34;&#34;&#62;Choose an author&#60;/option&#62; 
&#160;
&#60; ?php echo object_select_tag&#40;$article, 'getAuthorId', 'include_custom=Choose an author'&#41; ?&#62;


]]></description>
		<wfw:commentRss>http://wordpress.conch520.com.cn/2008/11/10/symfony-objects_for_select/feed/</wfw:commentRss>
		</item>
		<item>
		<title>mysql like 查询</title>
		<link>http://wordpress.conch520.com.cn/2008/11/02/mysql-like-%e6%9f%a5%e8%af%a2/</link>
		<comments>http://wordpress.conch520.com.cn/2008/11/02/mysql-like-%e6%9f%a5%e8%af%a2/#comments</comments>
		<pubDate>Sun, 02 Nov 2008 10:37:54 +0000</pubDate>
		<dc:creator>maosea0125</dc:creator>
		
		<category><![CDATA[Linux+Mysql]]></category>

		<category><![CDATA[like]]></category>

		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://wordpress.conch520.com.cn/?p=900</guid>
		<description><![CDATA[mysql查询默认是不区分大小写的 如：
select * from table_name where a like &#8216;a%&#8217;
select * from table_name where a like &#8216;A%&#8217;
效果是一样的。
要让mysql查询区分大小写，可以：
select * from table_name where binary a like &#8216;a%&#8217;
select * from table_name where binary a like &#8216;A%&#8217;
也可以在建表时，加以标识
create table table_name(
     a varchar(20) binary
)
]]></description>
		<wfw:commentRss>http://wordpress.conch520.com.cn/2008/11/02/mysql-like-%e6%9f%a5%e8%af%a2/feed/</wfw:commentRss>
		</item>
		<item>
		<title>PHP实现文件下载</title>
		<link>http://wordpress.conch520.com.cn/2008/10/28/php%e5%ae%9e%e7%8e%b0%e6%96%87%e4%bb%b6%e4%b8%8b%e8%bd%bd/</link>
		<comments>http://wordpress.conch520.com.cn/2008/10/28/php%e5%ae%9e%e7%8e%b0%e6%96%87%e4%bb%b6%e4%b8%8b%e8%bd%bd/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 04:14:13 +0000</pubDate>
		<dc:creator>maosea0125</dc:creator>
		
		<category><![CDATA[php]]></category>

		<category><![CDATA[download file]]></category>

		<guid isPermaLink="false">http://wordpress.conch520.com.cn/?p=899</guid>
		<description><![CDATA[这是fleaPHP上的函数，放在这个地方，以后好用。

[-]?View Code PHP    /**
     * 向浏览器发送文件内容
     *
     * @param string $serverPath 文件在服务器上的路径（绝对或者相对路径）
     * @param string $filename 发送给浏览器的文件名（尽可能不要使用中文）
     * @param string $mimeType 指示文件类型
     */
    function sendFile&#40;$serverPath, [...]]]></description>
		<wfw:commentRss>http://wordpress.conch520.com.cn/2008/10/28/php%e5%ae%9e%e7%8e%b0%e6%96%87%e4%bb%b6%e4%b8%8b%e8%bd%bd/feed/</wfw:commentRss>
		</item>
		<item>
		<title>symfony</title>
		<link>http://wordpress.conch520.com.cn/2008/10/19/symfony/</link>
		<comments>http://wordpress.conch520.com.cn/2008/10/19/symfony/#comments</comments>
		<pubDate>Sun, 19 Oct 2008 12:58:53 +0000</pubDate>
		<dc:creator>maosea0125</dc:creator>
		
		<category><![CDATA[php]]></category>

		<category><![CDATA[symfony]]></category>

		<guid isPermaLink="false">http://wordpress.conch520.com.cn/?p=898</guid>
		<description><![CDATA[&#160;&#160;&#160;&#160;在新公司上班2周了，那边使用的框架是symfony，接触symfony有2周了，就来说说我对这个框架的看法吧.
&#160;&#160;&#160;&#160;整个框架太过于复杂，里面什么东西都有，Creole，propel实现数据层，xml，yaml用来配置数据库和应用程序。ajax的东西也整合得比较多，而且什么都封装成了对象，让我感觉使用起来已经不像php了。
&#160;&#160;&#160;&#160;不知道是不是我的php水平太差了，我看了2周的symfony，现在也就会弄个数据库的操作，然后就是表单的处理一些简单的东西，而且有时候访问数据库，程序写错了，根本不晓得自己是那个地方错了，改bug完全是靠着感觉在走。哎…………感觉这个框架让我很头大。

我一直认为，PHP 的优势在于中小型项目。如果项目复杂到要用完全面向对象的设计， 那么我宁可选择 Java 或者 .NET。要知道对于这种项目，PHP 不但缺乏必要的语言支持， 更缺乏高效率的开发工具，而运行性能则更是无法和 Java、.NET 相比。所以 Symfony 是 小项目用不上，大项目不好用。
&#160;&#160;&#160;&#160;我比较赞成这句话，如果全都需要用面向对象的设计，何必还用php呢？
]]></description>
		<wfw:commentRss>http://wordpress.conch520.com.cn/2008/10/19/symfony/feed/</wfw:commentRss>
		</item>
		<item>
		<title>SQL and Criteria Object Syntax</title>
		<link>http://wordpress.conch520.com.cn/2008/10/14/sql-and-criteria-object-syntax/</link>
		<comments>http://wordpress.conch520.com.cn/2008/10/14/sql-and-criteria-object-syntax/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 05:34:36 +0000</pubDate>
		<dc:creator>maosea0125</dc:creator>
		
		<category><![CDATA[php]]></category>

		<category><![CDATA[criteria]]></category>

		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://wordpress.conch520.com.cn/?p=897</guid>
		<description><![CDATA[


SQL
Criteria




WHERE column = value
-&#62;add(column, value);


WHERE column &#60;&#62; value
-&#62;add(column, value, Criteria::NOT_EQUAL);


Other Comparison Operators



&#62; , &#60;
Criteria::GREATER_THAN, Criteria::LESS_THAN


&#62;=, &#60;=
Criteria::GREATER_EQUAL, Criteria::LESS_EQUAL


IS NULL, IS NOT NULL
Criteria::ISNULL, Criteria::ISNOTNULL


LIKE, ILIKE
Criteria::LIKE, Criteria::ILIKE


IN, NOT IN
Criteria::IN, Criteria::NOT_IN


Other SQL Keywords



ORDER BY column ASC
-&#62;addAscendingOrderByColumn(column);


ORDER BY column DESC
-&#62;addDescendingOrderByColumn(column);


LIMIT limit
-&#62;setLimit(limit)


OFFSET offset
-&#62;setOffset(offset)


FROM table1, table2 WHERE table1.col1 = table2.col2
-&#62;addJoin(col1, col2)


FROM table1 LEFT JOIN table2 ON table1.col1 = table2.col2
-&#62;addJoin(col1, col2, Criteria::LEFT_JOIN)


FROM table1 [...]]]></description>
		<wfw:commentRss>http://wordpress.conch520.com.cn/2008/10/14/sql-and-criteria-object-syntax/feed/</wfw:commentRss>
		</item>
		<item>
		<title>VSS常犯错误（转载）</title>
		<link>http://wordpress.conch520.com.cn/2008/10/14/vss-often-make-mistakes/</link>
		<comments>http://wordpress.conch520.com.cn/2008/10/14/vss-often-make-mistakes/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 03:08:37 +0000</pubDate>
		<dc:creator>maosea0125</dc:creator>
		
		<category><![CDATA[php]]></category>

		<category><![CDATA[vss]]></category>

		<guid isPermaLink="false">http://wordpress.conch520.com.cn/?p=896</guid>
		<description><![CDATA[&#160;&#160;&#160;&#160;VSS使用的比较少，网上看到的，记录下！

1、从服务器上对需要的文件”get latest version”，取出了最新版本，别人说那是可执行版本，我却无法正常编译？
原因：
出现这种情况，极大可能是你的本地保留了服务器上已经删除的旧文件，当你从服务器取最新版本的时候，系统只对本地与服务器上的同名文件进行了更新，没有对本地无用的垃圾文件进行删除。旧的垃圾文件保留在同一个文件夹中，出现服务器最新文件与本地垃圾文件并存的现象，造成系统无法编译成功。
解决办法：
如果可以确定服务器的文件和本地工作夹的文件个数一致，可以直接使用“get latest version”从服务器取得最新版本文件进行使用；
如果无法确定服务器的文件和本地工作夹的文件个数是否一致，则先将本地工作夹改名，另外建立一个与服务器同名的文件夹，再使用“get latest version”从服务器取得最新版本文件，经过使用确保服务器为最新可执行版本后，再将原来存放于本地改名后的文件夹删除。

2、我从本地将文件提交到服务器，每次提交时都会出问题，不是少了这个文件就是少了那个文件，提交的时候没仔细数清楚，直到用的时候才发现文件少了，还要一个一个文件对照，很麻烦。
原因：
提交文件的时候直接“check in”。　check in的动作只更新了处于check out状态的文件，没有考虑到新增的文件。
解决办法：
提交文件时不采用直接在VSS选中文件进行check in的动作，而是采用从本地工作夹直接拖到VSS相关目录的方式。这时，VSS会对提交的文件进行分类，对于已在服务器存在并处于check out状态的文件进行check in；对于未在服务器存在的文件进行add；对于已在服务器存在但没有check out的文件进行提示，无法提交。
建议每个人在提交文件时注意对照本地的最新版本与已提交到服务器的最新版本在日期和个数上是否一致。
3、我在本地直接修改了文件，想提交到VSS，结果在check out的时候把本地改好的文件覆盖了，又要重新改，欲哭无泪！
原因：
对于已纳入VSS的版本管理的文件，VSS统一将文件的属性改为只读。如需对某个文件进行修改，则需要先对相应的文件进行check out，check out后文件将转为正常状态，可以进行修改。也可以在资源管理器中直接将文件的只读属性改为正常状态，此时亦可对文件进行修改。当对VSS中的文件进行 check out时，如VSS检测到本地文件不是处于只读状态，则会给出类似以下提示：
此时，如果选择“Lave this file?”则会继续保留本地文件的版本；如果选择“Replace your local file with this version from SourceSafe”则会将本地文件版本覆盖为VSS服务器版本。
解决办法：
1.           尽量采用check out—>修改—>check in的办法，这样可以保证文件版本不易出错。
2.           当在check out时发现上述对话框提示时，首先判断服务器版本还是本地工作夹版本文件为最新，再选择相关的选项。
3.  [...]]]></description>
		<wfw:commentRss>http://wordpress.conch520.com.cn/2008/10/14/vss-often-make-mistakes/feed/</wfw:commentRss>
		</item>
		<item>
		<title>apache开启rewrite功能</title>
		<link>http://wordpress.conch520.com.cn/2008/10/13/apache%e5%bc%80%e5%90%afrewrite%e5%8a%9f%e8%83%bd/</link>
		<comments>http://wordpress.conch520.com.cn/2008/10/13/apache%e5%bc%80%e5%90%afrewrite%e5%8a%9f%e8%83%bd/#comments</comments>
		<pubDate>Mon, 13 Oct 2008 10:30:22 +0000</pubDate>
		<dc:creator>maosea0125</dc:creator>
		
		<category><![CDATA[日记]]></category>

		<category><![CDATA[apache]]></category>

		<category><![CDATA[rewrite]]></category>

		<guid isPermaLink="false">http://wordpress.conch520.com.cn/?p=895</guid>
		<description><![CDATA[打开httpd.conf，把下面这行前面的#去掉。

[-]?View Code CONF1
#LoadModule rewrite_module modules/mod_rewrite.so

再修改

[-]?View Code CONF1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
&#60;directory &#34;/usr/local/www&#34;&#62;
#
# Possible values for the Options directive are &#34;None&#34;, &#34;All&#34;,
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that &#34;MultiViews&#34; must be named *explicitly* --- &#34;Options All&#34;
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#opt...
# for more [...]]]></description>
		<wfw:commentRss>http://wordpress.conch520.com.cn/2008/10/13/apache%e5%bc%80%e5%90%afrewrite%e5%8a%9f%e8%83%bd/feed/</wfw:commentRss>
		</item>
		<item>
		<title>symfony，没有找到php_mbstring.dll</title>
		<link>http://wordpress.conch520.com.cn/2008/10/06/symfony-php_mbstringdll/</link>
		<comments>http://wordpress.conch520.com.cn/2008/10/06/symfony-php_mbstringdll/#comments</comments>
		<pubDate>Mon, 06 Oct 2008 09:46:38 +0000</pubDate>
		<dc:creator>maosea0125</dc:creator>
		
		<category><![CDATA[php]]></category>

		<category><![CDATA[symfony]]></category>

		<guid isPermaLink="false">http://wordpress.conch520.com.cn/?p=894</guid>
		<description><![CDATA[    在安装好symfony框架后，执行symfony命令时，提示“没有找到php_mbstring.dll”的解决方法是：将php.ini中的扩展部分，把extension=php_mbstring.dll移到extension=php_exif.dll的前面即可。
]]></description>
		<wfw:commentRss>http://wordpress.conch520.com.cn/2008/10/06/symfony-php_mbstringdll/feed/</wfw:commentRss>
		</item>
		<item>
		<title>回家了</title>
		<link>http://wordpress.conch520.com.cn/2008/09/09/%e5%9b%9e%e5%ae%b6%e4%ba%86/</link>
		<comments>http://wordpress.conch520.com.cn/2008/09/09/%e5%9b%9e%e5%ae%b6%e4%ba%86/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 09:16:48 +0000</pubDate>
		<dc:creator>maosea0125</dc:creator>
		
		<category><![CDATA[日记]]></category>

		<guid isPermaLink="false">http://wordpress.conch520.com.cn/?p=892</guid>
		<description><![CDATA[&#160;&#160;&#160;&#160;我准备回家了，9月11号晚上的飞机，准备回去耍一个月，到10月份的时候再回来，这一个月博客应该不会有更新了。谢谢大家来访问我的博客！
]]></description>
		<wfw:commentRss>http://wordpress.conch520.com.cn/2008/09/09/%e5%9b%9e%e5%ae%b6%e4%ba%86/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
