<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SatSun Studio FastCRM 官方博客</title>
	<atom:link href="http://www.satsuns.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.satsuns.com</link>
	<description>Vtiger CRM 中文版&#124;Vtiger CRM 技术培训&#124;Vtiger CRM 中文开发&#124;Fast CRM</description>
	<lastBuildDate>Sat, 14 Apr 2012 09:27:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>CentOS 中PHP支持IMAP 的方法 不是找php.ini而是yum一下</title>
		<link>http://www.satsuns.com/technicalprinciple/2144.html</link>
		<comments>http://www.satsuns.com/technicalprinciple/2144.html#comments</comments>
		<pubDate>Sat, 14 Apr 2012 09:27:38 +0000</pubDate>
		<dc:creator>phelps</dc:creator>
				<category><![CDATA[LAMP]]></category>

		<guid isPermaLink="false">http://www.satsuns.com/?p=2144</guid>
		<description><![CDATA[CentOS 中PHP支持IMAP 的方法 为了在centos上安装PHP IMAP，你需要运行以下命令: &#160; yum install php-imap 中间 输入 “y” 然后点击 ，安装过程会开始执行: 完成安装后你的vps已经具备 IMAP 功能，但是你需要重启你的 Apache 以便使其生效: 现在你可以使用 PHP IMAP 功能.]]></description>
			<content:encoded><![CDATA[<p>CentOS 中PHP支持IMAP 的方法</p>
<p>为了在centos上安装PHP IMAP，你需要运行以下命令:</p>
<p>&nbsp;</p>
<pre class="brush: php;">
yum install php-imap
</pre>
<p>中间 输入 “y” 然后点击 <enter> ，安装过程会开始执行:</p>
<p>完成安装后你的vps已经具备 IMAP 功能，但是你需要重启你的 Apache 以便使其生效:</p>
<p>现在你可以使用 PHP IMAP 功能.</p>
<div class="similarity"></div><!-- Tag -->]]></content:encoded>
			<wfw:commentRss>http://www.satsuns.com/technicalprinciple/2144.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vtiger CRM 5.4.0 中文演示</title>
		<link>http://www.satsuns.com/crms/2134.html</link>
		<comments>http://www.satsuns.com/crms/2134.html#comments</comments>
		<pubDate>Wed, 11 Apr 2012 05:38:28 +0000</pubDate>
		<dc:creator>phelps</dc:creator>
				<category><![CDATA[CRM 开发]]></category>
		<category><![CDATA[CRM]]></category>
		<category><![CDATA[CRM功能]]></category>
		<category><![CDATA[CRM实施]]></category>
		<category><![CDATA[VTIGER CRM]]></category>

		<guid isPermaLink="false">http://www.satsuns.com/?p=2134</guid>
		<description><![CDATA[Vtiger CRM 5.4.0 中文演示 vtigerCRM的5.4.0 RC已发布。此版本包括许多可用性改进，功能的增强，和100 + bug修复 5.4.0的可用性增强 简单单的顶层菜单，可以使用MenuEditor配置 简单的用户界面，用于创建自定义过滤器 转换引领UI已重新设计，以提供给用户的灵活性 导入功能已得到增强，使它更强劲 能够选择为质量编辑或批量电子邮件的跨页的记录， 帐户已重命名组织，和潜在的机会 隐藏的默认主页部件容易获得。 5.4.0 RC版本中的一些显着特点 工作流模块已得到增强，让你自动创建记录 跟踪谁改变为每个记录在CRM“浏览历史” 您的网站上轻松地与vtigerCRM的集成形式的WebForms模块 创建自定义图表，并添加到主页 客户门户网站提高创造更好的自定义设置 名片导入联系人和信息 包括在信息和联系报告的意见 用户名 admin 密码 admin 登录 Demo SatSun Studio 官方推荐文章Vtgier CRM ListView 试图列表工具按钮Tool Buttons中 自定义设置 (特别推荐)Vtiger CRM prototype+Jquery 共存解决方案 (特别推荐)vtigerAccessControl内存表方案详解 (特别推荐)开发Vtiger CRM细说：SQL缓存机制--深度剖析易客CRM缓存处理方案有感 (特别推荐)Vtiger CRM PDF Maker 模板设置 订单打印如此简单啦 (特别推荐)易客CRM （C3CRM）常见问答模块成功整合到Vtiger CRM [...]]]></description>
			<content:encoded><![CDATA[<p>Vtiger <span class='wp_keywordlink_affiliate'><a href="http://www.satsuns.com/tag/crm" title="查看 CRM 中的全部文章" target="_blank">CRM</a></span> 5.4.0 中文演示</p>
<p><a href="http://www.satsuns.com/wp-content/uploads/2012/04/vt5402.jpg"><img class="aligncenter size-full wp-image-2138" title="vt5402" src="http://www.satsuns.com/wp-content/uploads/2012/04/vt5402.jpg" alt="" width="880" height="441" /></a></p>
<p><a href="http://www.satsuns.com/wp-content/uploads/2012/04/vt540.jpg"><img class="aligncenter size-full wp-image-2137" title="vt540" src="http://www.satsuns.com/wp-content/uploads/2012/04/vt540.jpg" alt="" width="819" height="417" /></a></p>
<p><span><span style="font-family: Arial, Helvetica, sans-serif;"><span>vtiger<span class='wp_keywordlink_affiliate'><a href="http://www.satsuns.com/tag/crm" title="查看 CRM 中的全部文章" target="_blank">CRM</a></span>的5.4.0 RC已发布。此版本包括许多可用性改进，功能的增强，和100 + bug修复</span></span></span></p>
<p><strong>5.4.0的可用性增强</strong></p>
<ul>
<li>简单单的顶层菜单，可以使用MenuEditor配置</li>
<li>简单的用户界面，用于创建自定义过滤器</li>
<li>转换引领UI已重新设计，以提供给用户的灵活性</li>
<li>导入功能已得到增强，使它更强劲</li>
<li>能够选择为质量编辑或批量电子邮件的跨页的记录，</li>
<li>帐户已重命名组织，和潜在的机会</li>
<li>隐藏的默认主页部件容易获得。</li>
</ul>
<p><strong></strong><strong>5.4.0 RC版本中的一些显着特点</strong></p>
<ul>
<li>工作流模块已得到增强，让你自动创建记录</li>
<li>跟踪谁改变为每个记录在<span class='wp_keywordlink_affiliate'><a href="http://www.satsuns.com/tag/crm" title="查看 CRM 中的全部文章" target="_blank">CRM</a></span>“浏览历史”</li>
<li>您的网站上轻松地与vtiger<span class='wp_keywordlink_affiliate'><a href="http://www.satsuns.com/tag/crm" title="查看 CRM 中的全部文章" target="_blank">CRM</a></span>的集成形式的WebForms模块</li>
<li>创建自定义图表，并添加到主页</li>
<li>客户门户网站提高创造更好的自定义设置</li>
<li>名片导入联系人和信息</li>
<li>包括在信息和联系报告的意见</li>
</ul>
<p>用户名 admin 密码 admin</p>
<p>登录 <a title="vtigercrm5.4.0" href="http://crm.satsuns.com/vtigercrm5.4.0" target="_blank">Demo</a></p>
<div class="similarity"><h2 style="color:#879E17">SatSun Studio 官方推荐文章</h2><ul><li><a href="http://www.satsuns.com/crms/1986.html">Vtgier CRM ListView 试图列表工具按钮Tool Buttons中 自定义设置</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/crms/1993.html">Vtiger CRM prototype+Jquery 共存解决方案</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/crms/2016.html">vtigerAccessControl内存表方案详解</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/crms/2021.html">开发Vtiger CRM细说：SQL缓存机制--深度剖析易客CRM缓存处理方案有感</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/crms/2023.html">Vtiger CRM  PDF Maker 模板设置 订单打印如此简单啦</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/crms/2027.html">易客CRM （C3CRM）常见问答模块成功整合到Vtiger CRM</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/crms/2034.html">Vtiger CRM 5.3.0 中国官方CRM在线演示--由Centengine提供技术支持</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/crms/2037.html">比肩易客CRM FastCRM，无缝整合邮件</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/crms/2061.html">vtiger CRM 5.3.0 新功能</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/crms/2078.html">Vtiger CRM 5.2.1 添加 编辑 权限 分开控制</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/technicalprinciple/1059.html">Vtiger CRM 核心 目录结构 数据库结构</a> (RANDOM - <em style="color:#0FD383">推荐</em>)</li></ul></div><!-- Tag -->]]></content:encoded>
			<wfw:commentRss>http://www.satsuns.com/crms/2134.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>国内众多CRM，为什么，很多企业最后选择了FastCRM！？</title>
		<link>http://www.satsuns.com/crms/2131.html</link>
		<comments>http://www.satsuns.com/crms/2131.html#comments</comments>
		<pubDate>Wed, 14 Mar 2012 12:55:07 +0000</pubDate>
		<dc:creator>phelps</dc:creator>
				<category><![CDATA[CRM 开发]]></category>
		<category><![CDATA[CRM]]></category>
		<category><![CDATA[CRM功能]]></category>
		<category><![CDATA[CRM实施]]></category>
		<category><![CDATA[VTIGER CRM]]></category>

		<guid isPermaLink="false">http://www.satsuns.com/?p=2131</guid>
		<description><![CDATA[国内众多CRM，为什么，很多企业最后选择了FastCRM！？ FastCRM  基于Vtiger CRM  5.3.0 全新深度优化 打造的一款极具性价比的CRM。比肩国内一线VtigerCRM 二次开发团队&#8211;易客CRM。FastCRM 是针对中小企业的一套快速上手的CRM，极具性价比的同时，功能也相当的完善了，在企业面前有着很好的评价！   FastCRM 以快制胜，赢得商机！！！ FastCRM 演示地址 ：Fast CRM 2.9.2 国内CRM试用地址 八百客 产品和市场都比较不错，比较专业，企业使用最大需要考虑的是培训员工的成本 http://www.800app.com/ Xtools 较早进入国内的在线产品，比较专业，企业使用最大需要考虑的是培训员工的成本 http://www.xtools.cn/ 阿里软件 即是在线平台又有自己的产品，对于外贸企业比较适用 http://www.alisoft.com 上古知客CRM 界面清爽、功能适用，应该是国内性价比较高的一款软件 http://www.zkcrm.com/index.htm?tel=3698028 易客 采用国外源码开发，界面和风格类似Salesforce,外企可以考虑 http://www.c3crm.com/ 用友Turbo CRM 借助用友软件ERP的强大实力，方案性为主，大企业比较适合 http://www.turbocrm.com/index.html 神码在线 代理SalesForce，功能强大，价格和易用性是企业主要考量因素 http://www.saasbb.com/vms/index.html 风云在线 主营微软CRM，月租型服务，界面与Outlook类似，价格和易用性是企业主要考量因素 http://portal.fw086.com/Home/index.aspx 管家婆 品牌较老，功能较全，不予评价 http://www.grasp.com.cn/ 智邦CRM 市场做的比较好，面向低端应用，页面展开和布局有待改善 http://www.zbintel.com SatSun Studio 官方推荐文章Vtgier CRM ListView 试图列表工具按钮Tool Buttons中 自定义设置 (特别推荐)Vtiger [...]]]></description>
			<content:encoded><![CDATA[<p align="center"><strong><span style="color: #ff0000;">国内众多<span class='wp_keywordlink_affiliate'><a href="http://www.satsuns.com/tag/crm" title="查看 CRM 中的全部文章" target="_blank">CRM</a></span>，为什么，很多企业最后选择了Fast<span class='wp_keywordlink_affiliate'><a href="http://www.satsuns.com/tag/crm" title="查看 CRM 中的全部文章" target="_blank">CRM</a></span>！？</span></strong></p>
<p><strong>Fast<span class='wp_keywordlink_affiliate'><a href="http://www.satsuns.com/tag/crm" title="查看 CRM 中的全部文章" target="_blank">CRM</a></span>  基于Vtiger <span class='wp_keywordlink_affiliate'><a href="http://www.satsuns.com/tag/crm" title="查看 CRM 中的全部文章" target="_blank">CRM</a></span>  5.3.0 全新深度优化 打造的一款极具性价比的<span class='wp_keywordlink_affiliate'><a href="http://www.satsuns.com/tag/crm" title="查看 CRM 中的全部文章" target="_blank">CRM</a></span>。比肩国内一线Vtiger<span class='wp_keywordlink_affiliate'><a href="http://www.satsuns.com/tag/crm" title="查看 CRM 中的全部文章" target="_blank">CRM</a></span> 二次开发团队&#8211;易客<span class='wp_keywordlink_affiliate'><a href="http://www.satsuns.com/tag/crm" title="查看 CRM 中的全部文章" target="_blank">CRM</a></span>。Fast<span class='wp_keywordlink_affiliate'><a href="http://www.satsuns.com/tag/crm" title="查看 CRM 中的全部文章" target="_blank">CRM</a></span> 是针对中小企业的一套快速上手的CRM，极具性价比的同时，功能也相当的完善了，在企业面前有着很好的评价！   </strong><strong><span style="color: #ff00ff;">FastCRM 以快制胜，赢得商机！！！<br />
</span></strong><strong><span style="color: #ff00ff;">FastCRM 演示地址 ：<a href="http://crm.satsuns.com/2.9.2" target="_blank">Fast CRM 2.9.2</a></span></strong></p>
<p><strong><span style="color: #ff0000;">国内CRM试用地址</span></strong><br />
八百客 产品和市场都比较不错，比较专业，企业使用最大需要考虑的是培训员工的成本<br />
<a href="http://www.800app.com/" target="_blank">http://www.800app.com/</a></p>
<p>Xtools 较早进入国内的在线产品，比较专业，企业使用最大需要考虑的是培训员工的成本<br />
<a href="http://www.xtools.cn/" target="_blank">http://www.xtools.cn/</a></p>
<p>阿里软件 即是在线平台又有自己的产品，对于外贸企业比较适用<br />
<a href="http://www.alisoft.com/" target="_blank">http://www.alisoft.com</a></p>
<p>上古知客CRM 界面清爽、功能适用，应该是国内性价比较高的一款软件<br />
<a href="http://www.zkcrm.com/index.htm?tel=3698028" target="_blank">http://www.zkcrm.com/index.htm?tel=3698028</a><br />
易客 采用国外源码开发，界面和风格类似Salesforce,外企可以考虑<br />
<a href="http://www.c3crm.com/" target="_blank">http://www.c3crm.com/</a></p>
<p>用友Turbo CRM 借助用友软件ERP的强大实力，方案性为主，大企业比较适合<br />
<a href="http://www.turbocrm.com/index.html" target="_blank">http://www.turbocrm.com/index.html</a></p>
<p>神码在线 代理SalesForce，功能强大，价格和易用性是企业主要考量因素<br />
<a href="http://www.saasbb.com/vms/index.html" target="_blank">http://www.saasbb.com/vms/index.html</a></p>
<p>风云在线 主营微软CRM，月租型服务，界面与Outlook类似，价格和易用性是企业主要考量因素<br />
<a href="http://portal.fw086.com/Home/index.aspx" target="_blank">http://portal.fw086.com/Home/index.aspx</a></p>
<p>管家婆 品牌较老，功能较全，不予评价<br />
<a href="http://www.grasp.com.cn/" target="_blank">http://www.grasp.com.cn/</a></p>
<p>智邦CRM 市场做的比较好，面向低端应用，页面展开和布局有待改善<br />
<a href="http://www.zbintel.com/" target="_blank">http://www.zbintel.com</a></p>
<div class="similarity"><h2 style="color:#879E17">SatSun Studio 官方推荐文章</h2><ul><li><a href="http://www.satsuns.com/crms/1986.html">Vtgier CRM ListView 试图列表工具按钮Tool Buttons中 自定义设置</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/crms/1993.html">Vtiger CRM prototype+Jquery 共存解决方案</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/crms/2016.html">vtigerAccessControl内存表方案详解</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/crms/2021.html">开发Vtiger CRM细说：SQL缓存机制--深度剖析易客CRM缓存处理方案有感</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/crms/2023.html">Vtiger CRM  PDF Maker 模板设置 订单打印如此简单啦</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/crms/2027.html">易客CRM （C3CRM）常见问答模块成功整合到Vtiger CRM</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/crms/2034.html">Vtiger CRM 5.3.0 中国官方CRM在线演示--由Centengine提供技术支持</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/crms/2037.html">比肩易客CRM FastCRM，无缝整合邮件</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/crms/2061.html">vtiger CRM 5.3.0 新功能</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/crms/2078.html">Vtiger CRM 5.2.1 添加 编辑 权限 分开控制</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/crms/1841.html">山东CRM</a> (RANDOM - <em style="color:#0F3FC8">一般推荐</em>)</li></ul></div><!-- Tag -->]]></content:encoded>
			<wfw:commentRss>http://www.satsuns.com/crms/2131.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CodeIgniter Nginx 与Apache 重写规则</title>
		<link>http://www.satsuns.com/ci/2129.html</link>
		<comments>http://www.satsuns.com/ci/2129.html#comments</comments>
		<pubDate>Wed, 08 Feb 2012 04:51:41 +0000</pubDate>
		<dc:creator>phelps</dc:creator>
				<category><![CDATA[PHP>CI]]></category>
		<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.satsuns.com/?p=2129</guid>
		<description><![CDATA[CodeIgniter Nginx 与Apache 重写规则 CodeIgniter Nginx Config server { server_name .example.com; access_log /var/log/nginx/example.com.access.log; root /var/www/example.com/html; index index.php index.html index.htm; # enforce www (exclude certain subdomains) # if ($host !~* ^(www&#124;subdomain)) # { # rewrite ^/(.*)$ $scheme://www.$host/$1 permanent; # } # enforce NO www if ($host ~* ^www\.(.*)) { set $host_without_www $1; rewrite ^/(.*)$ $scheme://$host_without_www/$1 permanent; [...]]]></description>
			<content:encoded><![CDATA[<p><strong><span class='wp_keywordlink_affiliate'><a href="http://www.satsuns.com/tag/codeigniter" title="查看 CodeIgniter 中的全部文章" target="_blank">CodeIgniter</a></span> Nginx 与Apache 重写规则</strong></p>
<li><strong><span class='wp_keywordlink_affiliate'><a href="http://www.satsuns.com/tag/codeigniter" title="查看 CodeIgniter 中的全部文章" target="_blank">CodeIgniter</a></span> Nginx Config</strong></li>
<pre class="brush: php;">
server
{
    server_name .example.com;

    access_log /var/log/nginx/example.com.access.log;

    root /var/www/example.com/html;

    index index.php index.html index.htm;

    # enforce www (exclude certain subdomains)
#    if ($host !~* ^(www|subdomain))
#    {
#        rewrite ^/(.*)$ $scheme://www.$host/$1 permanent;
#    }

    # enforce NO www
    if ($host ~* ^www\.(.*))
    {
        set $host_without_www $1;
        rewrite ^/(.*)$ $scheme://$host_without_www/$1 permanent;
    }

    # canonicalize codeigniter url end points
    # if your default controller is something other than &quot;welcome&quot; you should change the following
    if ($request_uri ~* ^(/welcome(/index)?|/index(.php)?)/?$)
    {
        rewrite ^(.*)$ / permanent;
    }

    # removes trailing &quot;index&quot; from all controllers
    if ($request_uri ~* index/?$)
    {
        rewrite ^/(.*)/index/?$ /$1 permanent;
    }

    # removes trailing slashes (prevents SEO duplicate content issues)
    if (!-d $request_filename)
    {
        rewrite ^/(.+)/$ /$1 permanent;
    }

    # removes access to &quot;system&quot; folder, also allows a &quot;System.php&quot; controller
    if ($request_uri ~* ^/system)
    {
        rewrite ^/(.*)$ /index.php?/$1 last;
        break;
    }

    # unless the request is for a valid file (image, js, css, etc.), send to bootstrap
    if (!-e $request_filename)
    {
        rewrite ^/(.*)$ /index.php?/$1 last;
        break;
    }

    # catch all
    error_page 404 /index.php;

    # use fastcgi for all php files
    location ~ \.php$
    {
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME /var/www/example.com/html$fastcgi_script_name;
        include fastcgi_params;
    }

    # deny access to apache .htaccess files
    location ~ /\.ht
    {
        deny all;
    }
}
</pre>
<li><strong><span class='wp_keywordlink_affiliate'><a href="http://www.satsuns.com/tag/codeigniter" title="查看 CodeIgniter 中的全部文章" target="_blank">CodeIgniter</a></span> htaccess</strong></li>
<pre class="brush: php;">
RewriteEngine on
RewriteBase /

# Hide the application and system directories by redirecting the request to index.php (and throwing a 404 error)
RewriteRule ^(application|system|\.svn) index.php/$1 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php/$1
</pre>
<div class="similarity"><h2 style="color:#879E17">SatSun Studio 官方推荐文章</h2><ul><li><a href="http://www.satsuns.com/technicalprinciple/352.html">centos5.x+python2.4.3+mysql-python+django+mod_python的环境搭建方法</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/technicalprinciple/356.html">CodeIgniter  HMVC  Matchbox</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/ci/463.html">Dojo grid 服务器端 分页、排序的解决方案</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/ci/976.html">2011年php发展前景 关注php||关注CodeIgniter </a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/ci/1218.html">php的接口类与抽象类的作用</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/ci/1220.html">PHP setcookie() 函数详解</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/ci/1222.html">PHP 的一些高效写法</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/ci/1226.html">百度 的 Ajax 跨域解决方法</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/ci/1227.html">Phper 强力推荐 php高级用法</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/ci/1232.html">优化PHP代码的40条建议</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/ci/1778.html">如何修复PHP Undefined index的报错</a> (RANDOM - <strong style="color:red">特别推荐</strong>)</li></ul></div><!-- Tag -->]]></content:encoded>
			<wfw:commentRss>http://www.satsuns.com/ci/2129.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>女生应该找个有独立博客的男朋友</title>
		<link>http://www.satsuns.com/default/2127.html</link>
		<comments>http://www.satsuns.com/default/2127.html#comments</comments>
		<pubDate>Tue, 31 Jan 2012 23:56:21 +0000</pubDate>
		<dc:creator>phelps</dc:creator>
				<category><![CDATA[幽默诙谐]]></category>
		<category><![CDATA[幽默]]></category>
		<category><![CDATA[美女]]></category>

		<guid isPermaLink="false">http://www.satsuns.com/?p=2127</guid>
		<description><![CDATA[前些日子看到一篇文章名字叫《女生应该找个玩Dota的男朋友》，其中列写了若干原因。但是女生笨想都知道，男朋友整天沉迷游戏哪有时间陪她们啊， 找这样的男朋友真是自讨苦吃。基于上述文章，小雨突发奇想，女生应该找个有独立博客的男朋友才对嘛！所以，我也胡乱说几条原因吧： 宽敞的空间 都 想要大房子，想要大房子是要付出一定代价的。拥有一个独立博客就相当于在网上拥有一个宽敞明亮的大房子。只要你男朋友的房子足够大，你就可以把一切你想要 塞的东西塞进去。这样感觉是不是很酷呢？而且，你也不用担心它们会被放得乱七八糟。因为你的男朋友会帮你把这些文件整理得工工整整。 浪漫的地址 不 管是百度，还是新浪，还是网易什么的，你在人家那里搞个什么空间，总是给你个不爽的地址。hi.baidu.com/xx 或者是什么 xx.blogbus.com 这类的。这看着也太俗气了点，而且你都不好意思跟朋友说这个博客的地址是个二级域名。顶级域名绝对是最炫酷的！拥有独立域名会让别人立马对你刮目相看。 比 如说，弄个 AloveB.com 这样的域名，立马就表明A和B之间有某种关系了嘛，杀伤力绝对强悍！再比如说呢，你们俩共用一个域名 ourhouse.com，这样就可以开两个子域名——girl.ourhouse.com和boy.ourhouse.com。嗯……瞅瞅，往外人面前 一摆，人家立刻心领神会~ 是吧？以后还可以弄个son.ourhouse.com神马的……你说这要是在百度上面开个空间，你咋整成这样的？ 拥有独立的地址，当然邮件的地址也独立了。再也不用管什么@qq.com，@163.com什么的了，看看咱这@ourhouse.com 多个性！完全取决于你注册的域名。 完全自定的内容 男朋友既然会搞独立博客，那么你就可以把所有自己想做的工作都交给他一个人处理啦。你只顾在一边挥舞着指挥棒就能一步一步完成自己想要实现的一切，多么惬意啊！空间是自己的，网站是自己的，当然想往上面放些什么都可以啦！ 我 发现呢，很多女同学喜欢把自己甜蜜的事情拿出来晒给别人看。你看，你男朋友要是有个独立博客，那不得羡慕死别人啊？！把那些你发在SNS上的照片啊什么的 统统扔到独立博客上来吧，再把地址散布出去。效果不说绝对比在社交网站上好吧，至少会给人一种全新的感受。 自己的空间，那就完全不用看博客供应商的眼色。没有审查，没有限制，多好！你可以用任意一种方式在网页中插入音乐或者视频，可以任意定义它们的样式而不用 像在QQ空间里那样只有花钱才能租到好看的样式。随意更改哦！ 哦，对了，还能在自己家门口帮别人打打小广告，赚点外快~ 啧啧。 强大的后台 在 后台，你可以获得所有访问来源。某些网站搞什么隐身访问，到别人的页面上看，别人那不显示记录。但是来这里可就没有那种特权了，所有踪迹都将会被完整记录 在后台，看看有哪些人在关注你们吧！谁，某时某刻，用什么浏览器，看了你们几个页面，每个页面停留了多长时间……嗯，就是这么详细。 女同学可能看了头大，怕什么嘛？这些都是你男朋友在帮你做耶！而因为你对你男朋友有完全的控制权限，所以你对这个站点也有完全的控制权限啦！ 有时候你会担心，数据丢失了怎么办？这个大可不必过分担心。服务器提供商一般都会有强大的技术后台，除非是他们的服务器磁盘坏掉了或是被骇客入侵了，不然不会丢失数据的。即使丢失了部分数据，也是可以利用技术手段恢复的。如果实在担心，还是定期备份吧！ 这样的男生 说到实处，女孩子们毕竟是在找男朋友而不是在找个独立博客或者是个托管什么的，嗯，再确认一遍找的是男朋友。 拥有独立博客的男朋友不会让你们失望的。独立并且眼光独到，思维敏锐。普遍地说，意味着这样的男生有着独立思考的能力，有着积极向上的态度，有清晰逻辑的表达能力，有一颗温柔细致的心。你们要知道，照顾一个博客有多么不容易！ SatSun Studio 官方推荐文章香车美女 (特别推荐)你忙完了吗，MM？？ (特别推荐)令人喷饭的汽车窗后标语 (特别推荐)30个场景再现你的大学过往 (特别推荐)嫁给外星人的十大好处 (特别推荐)这些话经典得让人心疼 (特别推荐)SatSun Studio 推出的5则精短小笑话--轻松一刻 (特别推荐)美女写真馆–Katarina的丝袜美臀勾引你 (特别推荐)兔子不吃窝边草，好马不吃回头草，可我身边一棵草都没有 (推荐)轻松一刻——我的老婆80后 (推荐)重口味:8个给力的微小说 (RANDOM [...]]]></description>
			<content:encoded><![CDATA[<p>前些日子看到一篇文章名字叫《女生应该找个玩Dota的男朋友》，其中列写了若干原因。但是女生笨想都知道，男朋友整天沉迷游戏哪有时间陪她们啊， 找这样的男朋友真是自讨苦吃。基于上述文章，小雨突发奇想，女生应该找个有独立博客的男朋友才对嘛！所以，我也胡乱说几条原因吧：</p>
<p><strong>宽敞的空间</strong></p>
<p>都 想要大房子，想要大房子是要付出一定代价的。拥有一个独立博客就相当于在网上拥有一个宽敞明亮的大房子。只要你男朋友的房子足够大，你就可以把一切你想要 塞的东西塞进去。这样感觉是不是很酷呢？而且，你也不用担心它们会被放得乱七八糟。因为你的男朋友会帮你把这些文件整理得工工整整。</p>
<p><strong>浪漫的地址</strong></p>
<p>不 管是百度，还是新浪，还是网易什么的，你在人家那里搞个什么空间，总是给你个不爽的地址。hi.baidu.com/xx 或者是什么 xx.blogbus.com 这类的。这看着也太俗气了点，而且你都不好意思跟朋友说这个博客的地址是个二级域名。顶级域名绝对是最炫酷的！拥有独立域名会让别人立马对你刮目相看。</p>
<p>比 如说，弄个 AloveB.com 这样的域名，立马就表明A和B之间有某种关系了嘛，杀伤力绝对强悍！再比如说呢，你们俩共用一个域名 ourhouse.com，这样就可以开两个子域名——girl.ourhouse.com和boy.ourhouse.com。嗯……瞅瞅，往外人面前 一摆，人家立刻心领神会~ 是吧？以后还可以弄个son.ourhouse.com神马的……你说这要是在百度上面开个空间，你咋整成这样的？</p>
<p>拥有独立的地址，当然邮件的地址也独立了。再也不用管什么@qq.com，@163.com什么的了，看看咱这@ourhouse.com 多个性！完全取决于你注册的域名。</p>
<p><strong>完全自定的内容</strong></p>
<p>男朋友既然会搞独立博客，那么你就可以把所有自己想做的工作都交给他一个人处理啦。你只顾在一边挥舞着指挥棒就能一步一步完成自己想要实现的一切，多么惬意啊！空间是自己的，网站是自己的，当然想往上面放些什么都可以啦！</p>
<p>我 发现呢，很多女同学喜欢把自己甜蜜的事情拿出来晒给别人看。你看，你男朋友要是有个独立博客，那不得羡慕死别人啊？！把那些你发在SNS上的照片啊什么的 统统扔到独立博客上来吧，再把地址散布出去。效果不说绝对比在社交网站上好吧，至少会给人一种全新的感受。 自己的空间，那就完全不用看博客供应商的眼色。没有审查，没有限制，多好！你可以用任意一种方式在网页中插入音乐或者视频，可以任意定义它们的样式而不用 像在QQ空间里那样只有花钱才能租到好看的样式。随意更改哦！</p>
<p>哦，对了，还能在自己家门口帮别人打打小广告，赚点外快~ 啧啧。</p>
<p><strong>强大的后台</strong></p>
<p>在 后台，你可以获得所有访问来源。某些网站搞什么隐身访问，到别人的页面上看，别人那不显示记录。但是来这里可就没有那种特权了，所有踪迹都将会被完整记录 在后台，看看有哪些人在关注你们吧！谁，某时某刻，用什么浏览器，看了你们几个页面，每个页面停留了多长时间……嗯，就是这么详细。</p>
<p>女同学可能看了头大，怕什么嘛？这些都是你男朋友在帮你做耶！而因为你对你男朋友有完全的控制权限，所以你对这个站点也有完全的控制权限啦！</p>
<p>有时候你会担心，数据丢失了怎么办？这个大可不必过分担心。服务器提供商一般都会有强大的技术后台，除非是他们的服务器磁盘坏掉了或是被骇客入侵了，不然不会丢失数据的。即使丢失了部分数据，也是可以利用技术手段恢复的。如果实在担心，还是定期备份吧！</p>
<p><strong>这样的男生</strong></p>
<p>说到实处，女孩子们毕竟是在找男朋友而不是在找个独立博客或者是个托管什么的，嗯，再确认一遍找的是男朋友。</p>
<p>拥有独立博客的男朋友不会让你们失望的。独立并且眼光独到，思维敏锐。普遍地说，意味着这样的男生有着独立思考的能力，有着积极向上的态度，有清晰逻辑的表达能力，有一颗温柔细致的心。你们要知道，照顾一个博客有多么不容易！</p>
<div class="similarity"><h2 style="color:#879E17">SatSun Studio 官方推荐文章</h2><ul><li><a href="http://www.satsuns.com/default/926.html">香车美女</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/default/1104.html">你忙完了吗，MM？？</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/default/1750.html">令人喷饭的汽车窗后标语</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/default/1751.html">30个场景再现你的大学过往</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/default/1752.html">嫁给外星人的十大好处</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/default/1753.html">这些话经典得让人心疼</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/default/1802.html">SatSun  Studio 推出的5则精短小笑话--轻松一刻</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/default/1944.html">美女写真馆–Katarina的丝袜美臀勾引你</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/default/131.html">兔子不吃窝边草，好马不吃回头草，可我身边一棵草都没有</a> (<em style="color:#0FD383">推荐</em>)</li><li><a href="http://www.satsuns.com/default/141.html">轻松一刻——我的老婆80后</a> (<em style="color:#0FD383">推荐</em>)</li><li><a href="http://www.satsuns.com/default/168.html">[第三季] 我的老婆80后 有些东西错过了，就一辈子错过了</a> (RANDOM - <em style="color:#0FD383">推荐</em>)</li></ul></div><!-- Tag -->]]></content:encoded>
			<wfw:commentRss>http://www.satsuns.com/default/2127.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>php array_chunk()将一个数组分割成多个数组函数详解</title>
		<link>http://www.satsuns.com/ci/2125.html</link>
		<comments>http://www.satsuns.com/ci/2125.html#comments</comments>
		<pubDate>Tue, 31 Jan 2012 14:31:42 +0000</pubDate>
		<dc:creator>phelps</dc:creator>
				<category><![CDATA[PHP>CI]]></category>
		<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.satsuns.com/?p=2125</guid>
		<description><![CDATA[php array_chunk()将一个数组分割成多个数组函数详解 array_chunk() 把一个数组分割成新的数组块 array_chunk函数：将一个数组分割成多个数组。 【功能说明】该函数将一个数组分割成多个数组，其中每个数组的单元数目由size决定 。最后一个数组的单元数目可能会少几个。得到的得到的数组是一个多维数组中的单元，其索引从零开始。 【使用范围】PHP4&#62;=4.2.0、PHP5。 【函数语法】array array_chunk(array $input, int $size[, $preserve_keys]) 该函数的返回值为数组型。参数input为被分割的数组；参数size为分割出来的数组的单元数目；可选参数preserve_keys为布尔值，将其设为true可以使PHP保留输入数组中原来的键名；如果为false,则每个结果数组将用从零开始的新数字索引，默认值是false。 【示例程序】 &#60;?php $input_array = array(&#8216;a&#8217;, &#8216;b&#8217;, &#8216;c&#8217;, &#8216;d&#8217;, &#8216;e&#8217;); print_r ( array_chunk($input_array, 3) ); ?&#62; 输出结果： Array( [0] =&#62; Array( [0] =&#62; a [1] =&#62; b ) [1] =&#62; Array( [0] =&#62; c [1] =&#62; d ) [2] =&#62; Array( [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><strong>php array_chunk()将一个数组分割成多个数组函数详解</strong></p>
<p style="text-align: left;"><em>array_chunk() 把一个数组分割成新的数组块</em></p>
<p><strong>array_chunk函数：将一个数组分割成多个数组。</strong></p>
<p>【功能说明】该函数将一个数组分割成多个数组，其中每个数组的单元数目由size决定 。最后一个数组的单元数目可能会少几个。得到的得到的数组是一个多维数组中的单元，其索引从零开始。</p>
<p>【使用范围】<span class='wp_keywordlink_affiliate'><a href="http://www.satsuns.com/tag/php" title="查看 PHP 中的全部文章" target="_blank">PHP</a></span>4&gt;=4.2.0、<span class='wp_keywordlink_affiliate'><a href="http://www.satsuns.com/tag/php" title="查看 PHP 中的全部文章" target="_blank">PHP</a></span>5。</p>
<p>【函数语法】array array_chunk(array $input, int $size[, $preserve_keys])</p>
<p>该函数的返回值为数组型。参数input为被分割的数组；参数size为分割出来的数组的单元数目；可选参数preserve_keys为布尔值，将其设为true可以使<span class='wp_keywordlink_affiliate'><a href="http://www.satsuns.com/tag/php" title="查看 PHP 中的全部文章" target="_blank">PHP</a></span>保留输入数组中原来的键名；如果为false,则每个结果数组将用从零开始的新数字索引，默认值是false。</p>
<p>【示例程序】</p>
<p>&lt;?php</p>
<p>$input_array = array(&#8216;a&#8217;, &#8216;b&#8217;, &#8216;c&#8217;, &#8216;d&#8217;, &#8216;e&#8217;);</p>
<p>print_r ( array_chunk($input_array, 3) );</p>
<p>?&gt;</p>
<p>输出结果：</p>
<p>Array(<br />
[0] =&gt; Array(<br />
[0] =&gt; a<br />
[1] =&gt; b</p>
<p>)<br />
[1] =&gt; Array(<br />
[0] =&gt; c<br />
[1] =&gt; d<br />
)<br />
[2] =&gt; Array(<br />
[0] =&gt; e<br />
)<br />
)</p>
<p>示例2：</p>
<p>&lt;?php</p>
<p>$array_input = array(&#8216;a&#8217;, &#8216;b&#8217;, &#8216;c&#8217;, &#8216;d&#8217;, &#8216;e&#8217;);</p>
<p>print_r( array_chunk($array_input, 2, true) );</p>
<p>?&gt;</p>
<p>输出结果：</p>
<p>Array<br />
(<br />
[0] =&gt; Array<br />
(<br />
[0] =&gt; a<br />
[1] =&gt; b<br />
)</p>
<p>[1] =&gt; Array<br />
(<br />
[2] =&gt; c<br />
[3] =&gt; d<br />
)</p>
<p>[2] =&gt; Array<br />
(<br />
[4] =&gt; e<br />
)<br />
)</p>
<div class="similarity"><h2 style="color:#879E17">SatSun Studio 官方推荐文章</h2><ul><li><a href="http://www.satsuns.com/technicalprinciple/352.html">centos5.x+python2.4.3+mysql-python+django+mod_python的环境搭建方法</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/technicalprinciple/356.html">CodeIgniter  HMVC  Matchbox</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/ci/463.html">Dojo grid 服务器端 分页、排序的解决方案</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/ci/976.html">2011年php发展前景 关注php||关注CodeIgniter </a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/ci/1218.html">php的接口类与抽象类的作用</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/ci/1220.html">PHP setcookie() 函数详解</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/ci/1222.html">PHP 的一些高效写法</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/ci/1226.html">百度 的 Ajax 跨域解决方法</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/ci/1227.html">Phper 强力推荐 php高级用法</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/ci/1232.html">优化PHP代码的40条建议</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/ci/334.html">How to use FusionCharts Free with CodeIgniter？</a> (RANDOM - <strong style="color:#B43FC8">最佳推荐</strong>)</li></ul></div><!-- Tag -->]]></content:encoded>
			<wfw:commentRss>http://www.satsuns.com/ci/2125.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FastCRM 2.9.2发布-添加、编辑权限分开处理&#124;&#124;短信不仅支持运营商对接，同时支持短信猫外发</title>
		<link>http://www.satsuns.com/crms/2120.html</link>
		<comments>http://www.satsuns.com/crms/2120.html#comments</comments>
		<pubDate>Mon, 16 Jan 2012 06:32:44 +0000</pubDate>
		<dc:creator>phelps</dc:creator>
				<category><![CDATA[CRM 开发]]></category>
		<category><![CDATA[CRM]]></category>
		<category><![CDATA[CRM功能]]></category>
		<category><![CDATA[CRM实施]]></category>
		<category><![CDATA[VTIGER CRM]]></category>

		<guid isPermaLink="false">http://www.satsuns.com/?p=2120</guid>
		<description><![CDATA[FastCRM 2.9.2发布-添加、编辑权限分开处理&#124;&#124;短信不仅支持运营商对接，同时支持短信猫外发 FastCRM在线试用&#8211;Vtiger CRM 中文版本地话最强服务团队 FastCRM 在线试用&#8211;以快制胜 赢得先机FastCRM在线试用&#8211;Vtiger CRM 中文版本地话最强服务团队！！ 实惠的价格优秀的技术支持，给您提供官方的服务！！ 在线试用 VPS-1   FastCRM (全球演示)在线试用 VPS-2   FastCRM (中国大陆演示) 用户名 ：  admin 密  码：  dojocn 好消息 Fast CRM 2.9.2 隆重推出，更强劲的功能！相同的价格！！ 更新内容： 缓存增强 添加、编辑权限分开 短信支持增强 支持中国各大短信运行商，同时增加对短信猫的支持！！ 滚动公告增强,富文本编辑器，支持粗体，字体增大，字体颜色，gif 、jpg、 png图片功能！！ SatSun Studio 官方推荐文章Vtgier CRM ListView 试图列表工具按钮Tool Buttons中 自定义设置 (特别推荐)Vtiger CRM prototype+Jquery 共存解决方案 (特别推荐)vtigerAccessControl内存表方案详解 (特别推荐)开发Vtiger CRM细说：SQL缓存机制--深度剖析易客CRM缓存处理方案有感 (特别推荐)Vtiger CRM PDF Maker 模板设置 订单打印如此简单啦 (特别推荐)易客CRM （C3CRM）常见问答模块成功整合到Vtiger CRM (特别推荐)Vtiger [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Fast<span class='wp_keywordlink_affiliate'><a href="http://www.satsuns.com/tag/crm" title="查看 CRM 中的全部文章" target="_blank">CRM</a></span> 2.9.2发布-添加、编辑权限分开处理||短信不仅支持运营商对接，同时支持短信猫外发</strong></p>
<h3 style="text-align: center;"><a id="thread_subject" href="http://www.dojocn.org/thread-164-1-1.html">FastCRM在线试用&#8211;Vtiger CRM 中文版本地话最强服务团队</a></h3>
<table cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td id="postmessage_947"><strong><span style="color: red;">Fast<span class='wp_keywordlink_affiliate'><a href="http://www.satsuns.com/tag/crm" title="查看 CRM 中的全部文章" target="_blank">CRM</a></span> 在线试用&#8211;以快制胜 赢得先机</span></strong><span style="color: #ff0000;"><strong>Fast<span class='wp_keywordlink_affiliate'><a href="http://www.satsuns.com/tag/crm" title="查看 CRM 中的全部文章" target="_blank">CRM</a></span>在线试用&#8211;Vtiger <span class='wp_keywordlink_affiliate'><a href="http://www.satsuns.com/tag/crm" title="查看 CRM 中的全部文章" target="_blank">CRM</a></span> 中文版本地话最强服务团队！！</strong></span><br />
<span style="color: #ff0000;"><strong>实惠的价格优秀的技术支持，给您提供官方的服务！！<br />
在线试用 VPS-1   </strong></span><a href="http://www.dojocn.org/fastcrm/" target="_blank">FastCRM</a> <strong>(全球演示)</strong><span style="color: #ff0000;"><strong>在线试用 VPS-2   </strong></span><a href="http://crm.satsuns.com/2.9.2/" target="_blank">FastCRM</a> <strong>(中国大陆演示) </strong><strong></strong><span style="font-size: medium;"><span style="font-family: 微软雅黑;"><em><strong>用户名</strong></em></span> ：  admin<br />
<strong><em><span style="font-family: 楷体;">密  码</span></em></strong>：  dojocn</span></p>
<p align="center"><strong><span style="font-family: 楷体;"><span style="font-size: large;"><span style="color: #ff0000;">好消息 Fast <span class='wp_keywordlink_affiliate'><a href="http://www.satsuns.com/tag/crm" title="查看 CRM 中的全部文章" target="_blank">CRM</a></span> 2.9.2 隆重推出，更强劲的功能！相同的价格！！</span></span></span></strong></p>
<p><span style="font-size: large;"><strong>更新内容：</strong></span></p>
<ul>
<li><strong><span style="font-size: small;"><span style="color: #008080;">缓存增强</span></span></strong></li>
<li><strong><span style="color: #8b0000;">添加、编辑权限分开</span></strong></li>
<li><strong><span style="color: #ff0000;">短信支持增强 支持中国各大短信运行商，同时增加对短信猫的支持！！</span></strong></li>
<li><strong><span style="color: #696969;">滚动公告增强,富文本编辑器，支持粗体，字体增大，字体颜色，gif 、jpg、 png图片功能！！</span></strong></li>
</ul>
<div><span style="color: #696969;"><strong><a href="http://www.satsuns.com/wp-content/uploads/2012/01/184101plwmabpz8d3bl8zm.jpg"><img class="aligncenter  wp-image-2122" title="184101plwmabpz8d3bl8zm" src="http://www.satsuns.com/wp-content/uploads/2012/01/184101plwmabpz8d3bl8zm.jpg" alt="" width="653" height="393" /></a></strong></span></div>
<p><img id="aimg_81" title="fastcrmannouncement.jpg" src="http://www.dojocn.org/data/attachment/forum/201201/16/1131082ti82vurizr22h82.jpg" alt="fastcrmannouncement.jpg" width="600" /></td>
</tr>
</tbody>
</table>
<div class="similarity"><h2 style="color:#879E17">SatSun Studio 官方推荐文章</h2><ul><li><a href="http://www.satsuns.com/crms/1986.html">Vtgier CRM ListView 试图列表工具按钮Tool Buttons中 自定义设置</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/crms/1993.html">Vtiger CRM prototype+Jquery 共存解决方案</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/crms/2016.html">vtigerAccessControl内存表方案详解</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/crms/2021.html">开发Vtiger CRM细说：SQL缓存机制--深度剖析易客CRM缓存处理方案有感</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/crms/2023.html">Vtiger CRM  PDF Maker 模板设置 订单打印如此简单啦</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/crms/2027.html">易客CRM （C3CRM）常见问答模块成功整合到Vtiger CRM</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/crms/2034.html">Vtiger CRM 5.3.0 中国官方CRM在线演示--由Centengine提供技术支持</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/crms/2037.html">比肩易客CRM FastCRM，无缝整合邮件</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/crms/2061.html">vtiger CRM 5.3.0 新功能</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/crms/2078.html">Vtiger CRM 5.2.1 添加 编辑 权限 分开控制</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/crms/1280.html">Vtiger中文显示问题_首页统计图中文显示_中文字体添加汇总</a> (RANDOM - <em style="color:#0F3FC8">一般推荐</em>)</li></ul></div><!-- Tag -->]]></content:encoded>
			<wfw:commentRss>http://www.satsuns.com/crms/2120.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>深入分析Nginx 502 Bad Gateway和Nginx 504 Gateway Time</title>
		<link>http://www.satsuns.com/technicalprinciple/2118.html</link>
		<comments>http://www.satsuns.com/technicalprinciple/2118.html#comments</comments>
		<pubDate>Tue, 10 Jan 2012 04:41:32 +0000</pubDate>
		<dc:creator>phelps</dc:creator>
				<category><![CDATA[LAMP]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.satsuns.com/?p=2118</guid>
		<description><![CDATA[Nginx 502 Bad Gateway的含义是请求的PHP-CGI已经执行，但是由于某种原因（一般是读取资源的问题）没有执行完毕而导致PHP-CGI进程终止。php-cgi进程数不够用、php执行时间长、或者是php-cgi进程死掉，都会出现502错误 运行以下命令判断是否接近FastCGI进程，如果fastcgi进程数接近配置文件中设置的数值，表明worker进程数设置太少 netstat -anpo &#124; grep “php-cgi” &#124; wc -l Nginx 504 Gateway Time-out的含义是所请求的网关没有请求到，简单来说就是没有请求到可以执行的PHP-CGI。 解决这两个问题其实是需要综合思考的，一般来说Nginx 502 Bad Gateway和php-fpm.conf的设置有关，而Nginx 504 Gateway Time-out则是与nginx.conf的设置有关。 而正确的设置需要考虑服务器自身的性能和访客的数量等多重因素。 以我目前的服务器为例子CPU是奔四1.5G的，内存1GB，CENTOS的系统，访客大概是50人左右同时在线。 但是在线的人大都需要请求PHP-CGI进行大量的信息处理，因此我将nginx.conf设置为： fastcgi_connect_timeout 300s; fastcgi_send_timeout 300s; fastcgi_read_timeout 300s; fastcgi_buffer_size 128k; fastcgi_buffers 8 128k;#8 128 fastcgi_busy_buffers_size 256k; fastcgi_temp_file_write_size 256k; fastcgi_intercept_errors on; 这里最主要的设置是前三条，即 fastcgi_connect_timeout 300s; fastcgi_send_timeout 300s; fastcgi_read_timeout 300s; 这里规定了PHP-CGI的连接、发送和读取的时间，300秒足够用了，因此我的服务器很少出现504 Gateway Time-out这个错误。最关键的是php-fpm.conf的设置，这个会直接导致502 [...]]]></description>
			<content:encoded><![CDATA[<p>Nginx 502 Bad Gateway的含义是请求的PHP-CGI已经执行，但是由于某种原因（一般是读取资源的问题）没有执行完毕而导致PHP-CGI进程终止。php-cgi进程数不够用、php执行时间长、或者是php-cgi进程死掉，都会出现502错误<br />
运行以下命令判断是否接近FastCGI进程，如果fastcgi进程数接近配置文件中设置的数值，表明worker进程数设置太少<br />
netstat -anpo | grep “php-cgi” | wc -l</p>
<p>Nginx 504 Gateway Time-out的含义是所请求的网关没有请求到，简单来说就是没有请求到可以执行的PHP-CGI。</p>
<p>解决这两个问题其实是需要综合思考的，<strong>一般来说Nginx 502 Bad Gateway和php-fpm.conf的设置有关，而Nginx 504 Gateway Time-out则是与nginx.conf的设置有关</strong>。<br />
而正确的设置需要考虑服务器自身的性能和访客的数量等多重因素。<br />
以我目前的服务器为例子CPU是奔四1.5G的，内存1GB，CENTOS的系统，访客大概是50人左右同时在线。<br />
但是在线的人大都需要请求PHP-CGI进行大量的信息处理，因此我将nginx.conf设置为：<br />
fastcgi_connect_timeout 300s;<br />
fastcgi_send_timeout 300s;<br />
fastcgi_read_timeout 300s;<br />
fastcgi_buffer_size 128k;<br />
fastcgi_buffers 8 128k;#8 128<br />
fastcgi_busy_buffers_size 256k;<br />
fastcgi_temp_file_write_size 256k;<br />
fastcgi_intercept_errors on;<br />
这里最主要的设置是前三条，即<br />
<strong>fastcgi_connect_timeout 300s;<br />
fastcgi_send_timeout 300s;<br />
fastcgi_read_timeout 300s;</strong><br />
这里规定了PHP-CGI的连接、发送和读取的时间，300秒足够用了，因此我的服务器很少出现504 Gateway Time-out这个错误。最关键的是php-fpm.conf的设置，这个会直接导致502 Bad Gateway和504 Gateway Time-out。<br />
下面我们来仔细分析一下php-fpm.conf几个重要的参数：<br />
php-fpm.conf有两个至关重要的参数，一个是”max_children”,另一个是”request_terminate_timeout”<br />
我的两个设置的值一个是”40″，一个是”900″，但是这个值不是通用的，而是需要自己计算的。<br />
计算的方式如下：<br />
如果你的服务器性能足够好，且宽带资源足够充足，PHP脚本没有系循环或BUG的话你可以直接将”request_terminate_timeout” 设置成0s。0s的含义是让PHP-CGI一直执行下去而没有时间限制。而如果你做不到这一点，也就是说你的PHP-CGI可能出现某个BUG，或者你的 宽带不够充足或者其他的原因导致你的PHP-CGI能够假死那么就建议你给”request_terminate_timeout”赋一个值，这个值可以 根据你服务器的性能进行设定。一般来说性能越好你可以设置越高，20分钟-30分钟都可以。由于我的服务器PHP脚本需要长时间运行，有的可能会超过10 分钟因此我设置了900秒，这样不会导致PHP-CGI死掉而出现502 Bad gateway这个错误。</p>
<p>而”max_children”这个值又是怎么计算出来的呢？这个值原则上是越大越好，php-cgi的进程多了就会处理的很快，排队的请求就会很 少。设置”max_children”也需要根据服务器的性能进行设定，一般来说一台服务器正常情况下每一个php-cgi所耗费的内存在20M左右，因 此我的”max_children”我设置成40个，20M*40=800M也就是说在峰值的时候所有PHP-CGI所耗内存在800M以内，低于我的有 效内存1Gb。而如果我的”max_children”设置的较小，比如5-10个，那么php-cgi就会“很累”，处理速度也很慢，等待的时间也较 长。如果长时间没有得到处理的请求就会出现504 Gateway Time-out这个错误，而正在处理的很累的那几个php-cgi如果遇到了问题就会出现502 Bad gateway这个错误。</p>
<div class="similarity"><h2 style="color:#879E17">SatSun Studio 官方推荐文章</h2><ul><li><a href="http://www.satsuns.com/technicalprinciple/352.html">centos5.x+python2.4.3+mysql-python+django+mod_python的环境搭建方法</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/technicalprinciple/353.html">使用自由加密软件PHP screw对PHP源码加密</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/technicalprinciple/508.html">Linux||服务器间文件复制&&传递||scp命令</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/technicalprinciple/675.html">膜拜牛人：200+行Kernel补丁显著改善Linux桌面性能</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/android/694.html">Andriod被排出Linux内核的原因</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/technicalprinciple/732.html">2010年，Linux大事记</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/android/774.html">Linux较Windows和Mac出色的20个理由</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/technicalprinciple/1049.html">LNMP 强强来袭 LAMP何时退位？</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/technicalprinciple/1150.html">centOS 5.4 Apache 多站点，虚拟主机</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/technicalprinciple/1198.html">Linux VPS一键安装包集合</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/technicalprinciple/1524.html">Redis容量及使用规划</a> (RANDOM - <strong style="color:red">特别推荐</strong>)</li></ul></div><!-- Tag -->]]></content:encoded>
			<wfw:commentRss>http://www.satsuns.com/technicalprinciple/2118.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Socket Http/1.1 GET&#124;&#124;POST 请求示例</title>
		<link>http://www.satsuns.com/ci/2113.html</link>
		<comments>http://www.satsuns.com/ci/2113.html#comments</comments>
		<pubDate>Sat, 07 Jan 2012 07:06:44 +0000</pubDate>
		<dc:creator>phelps</dc:creator>
				<category><![CDATA[PHP>CI]]></category>
		<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.satsuns.com/?p=2113</guid>
		<description><![CDATA[PHP Socket Http/1.1 GET&#124;&#124;POST 请求示例 使用PHP进行异步HTTP请求 使用JavaScript/Ajax可轻松实现异步HTTP请求，本文介绍使用PHP进行异步HTTP请求。所谓异步HTTP请求是指：HTTP协议基于TCP且是基于状态的，client和server建立连接后发送请求需要等到server处理结束并返回后才可以断开连接。某些情况下，client端只需要发出自己的请求即可，不需要知道server端的响应，这个时候即需要实现client端发出异步HTTP请求。另外，在长耗时应用中(请求的server端任务比较耗时，超过HTTP timeout时间甚至更长)，也可以考虑使用异步HTTP请求出发该任务。 一、使用socket修改HTTP header 使用socket连接到server上，发送raw HTTP header(注意设置Connection: Close)，完成之后立即关闭socket不等待server做出响应再返回。 GET例子 需要请求的server url为http://example.com/Default.aspx，接受的参数为action=start，method为GET，需要携带的cookies为ASP.NET_SessionId=zfyaimqgtt1bfiewq0najgah。(这些信息都可以使用HttpWatch分析得到)。 例如HttpWatch的分析的client端的HTTP请求为： GET /Default.aspx?action=start HTTP/1.1 Accept-Language: zh-cn User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727) Accept-Encoding: gzip, deflate Host: example.com Connection: Keep-Alive Cookie: ASP.NET_SessionId=zfyaimqgtt1bfiewq0najgah 修改为异步HTTP请求： $host = &#34;example.com&#34;; $path = &#34;/Default.aspx?action=start&#34;; $cookie = &#34;ASP.NET_SessionId=zfyaimqgtt1bfiewq0najgah&#34;; $start [...]]]></description>
			<content:encoded><![CDATA[<p><strong><span class='wp_keywordlink_affiliate'><a href="http://www.satsuns.com/tag/php" title="查看 PHP 中的全部文章" target="_blank">PHP</a></span> Socket Http/1.1 GET||POST 请求示例</strong><br />
使用<span class='wp_keywordlink_affiliate'><a href="http://www.satsuns.com/tag/php" title="查看 PHP 中的全部文章" target="_blank">PHP</a></span>进行异步HTTP请求</p>
<p>使用JavaScript/Ajax可轻松实现异步HTTP请求，本文介绍使用<span class='wp_keywordlink_affiliate'><a href="http://www.satsuns.com/tag/php" title="查看 PHP 中的全部文章" target="_blank">PHP</a></span>进行异步HTTP请求。所谓异步HTTP请求是指：HTTP协议基于TCP且是基于状态的，client和server建立连接后发送请求需要等到server处理结束并返回后才可以断开连接。某些情况下，client端只需要发出自己的请求即可，不需要知道server端的响应，这个时候即需要实现client端发出异步HTTP请求。另外，在长耗时应用中(请求的server端任务比较耗时，超过HTTP timeout时间甚至更长)，也可以考虑使用异步HTTP请求出发该任务。</p>
<p><strong><br />
一、使用socket修改HTTP header</strong></p>
<p>使用socket连接到server上，发送raw HTTP header(注意设置Connection: Close)，完成之后立即关闭socket不等待server做出响应再返回。</p>
<p>GET例子</p>
<p>需要请求的server url为http://example.com/Default.aspx，接受的参数为action=start，method为GET，需要携带的cookies为ASP.NET_SessionId=zfyaimqgtt1bfiewq0najgah。(这些信息都可以使用HttpWatch分析得到)。</p>
<p>例如HttpWatch的分析的client端的HTTP请求为：</p>
<pre class="brush: php;">
    GET /Default.aspx?action=start HTTP/1.1
    Accept-Language: zh-cn
    User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727)
    Accept-Encoding: gzip, deflate
    Host: example.com
    Connection: Keep-Alive
    Cookie: ASP.NET_SessionId=zfyaimqgtt1bfiewq0najgah
</pre>
<p>修改为异步HTTP请求：</p>
<pre class="brush: php;">
    $host = &quot;example.com&quot;;
    $path = &quot;/Default.aspx?action=start&quot;;
    $cookie = &quot;ASP.NET_SessionId=zfyaimqgtt1bfiewq0najgah&quot;;

    $start = microtime(true);

    $fp = fsockopen($host, 80, $errno, $errstr, 30);
    if (!$fp) {
       print &quot;$errstr ($errno)&lt;br /&gt;\n&quot;;
       exit;
    }
    $out = &quot;GET &quot;.$path.&quot; HTTP/1.1\r\n&quot;;
    $out .= &quot;Host: &quot;.$host.&quot;\r\n&quot;;          //需要注意Host不能包括`http://`，仅可以使用`example.com`
    $out .= &quot;Connection: Close\r\n&quot;;
    $out .= &quot;Cookie: &quot;.$cookie.&quot;\r\n\r\n&quot;;

    fwrite($fp, $out);  //将请求写入socket

    /*
    //也可以选择获取server端的响应
    while (!feof($fp)) {
        echo fgets($fp, 128);
    }
    */

    //如果不等待server端响应直接关闭socket即可
    fclose($fp);

    $cost = microtime(true) - $start;
    print &quot;\n&quot;.$cost.&quot;\n&quot;;
    exit;
</pre>
<p><strong>POST例子</strong></p>
<p>需要请求的server url为http://example.com/Login.aspx，接受的参数为username=my-username&#038;password=my-password，method为POST，需要携带的cookies为ASP.NET_SessionId=zfyaimqgtt1bfiewq0najgah。(这些信息都可以使用HttpWatch分析得到)。</p>
<p>例如HttpWatch的分析的client端的HTTP请求为：</p>
<pre class="brush: php;">
    POST /Login.aspx HTTP/1.1
    Accept-Language: zh-cn
    User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727)
    Content-Type: application/x-www-form-urlencoded
    Accept-Encoding: gzip, deflate
    Host: example.com
    Connection: Keep-Alive
    Cache-Control: no-cache
    Cookie: ASP.NET_SessionId=zfyaimqgtt1bfiewq0najgah

    username=my-username&amp;password=my-password
</pre>
<p>PHP POST 的示例代码：</p>
<pre class="brush: php;">
    $host = &quot;example.com&quot;;
    $path = &quot;/Login.aspx&quot;;
    $cookie = &quot;ASP.NET_SessionId=zfyaimqgtt1bfiewq0najgah&quot;;
    $params = &quot;username=my-username&amp;password=my-password&quot;;

    $start = microtime(true);

    $fp = fsockopen($host, 80, $errno, $errstr, 30);
    if (!$fp) {
       print &quot;$errstr ($errno)&lt;br /&gt;\n&quot;;
       exit;
    }
    $out = &quot;POST &quot;.$path.&quot; HTTP/1.1\r\n&quot;;
    $out .= &quot;Host: &quot;.$host.&quot;\r\n&quot;;
    $out .= &quot;Connection: Close\r\n&quot;;
    $out .= &quot;Cookie: &quot;.$cookie.&quot;\r\n\r\n&quot;;
    $out .= $params;

    fwrite($fp, $out);  

    /*
    //也可以选择获取server端的响应
    while (!feof($fp)) {
        echo fgets($fp, 128);
    }
    */

    //如果不等待server端响应直接关闭socket即可
    fclose($fp);

    $cost = microtime(true) - $start;
    print &quot;\n&quot;.$cost.&quot;\n&quot;;
    exit;
</pre>
<div class="similarity"><h2 style="color:#879E17">SatSun Studio 官方推荐文章</h2><ul><li><a href="http://www.satsuns.com/technicalprinciple/352.html">centos5.x+python2.4.3+mysql-python+django+mod_python的环境搭建方法</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/technicalprinciple/356.html">CodeIgniter  HMVC  Matchbox</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/ci/463.html">Dojo grid 服务器端 分页、排序的解决方案</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/ci/976.html">2011年php发展前景 关注php||关注CodeIgniter </a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/ci/1218.html">php的接口类与抽象类的作用</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/ci/1220.html">PHP setcookie() 函数详解</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/ci/1222.html">PHP 的一些高效写法</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/ci/1226.html">百度 的 Ajax 跨域解决方法</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/ci/1227.html">Phper 强力推荐 php高级用法</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/ci/1232.html">优化PHP代码的40条建议</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/ci/1484.html">MySQL左连接LEFT JOIN ||右连接RIGHT JOIN||等值连接JOIN 详解</a> (RANDOM - <em style="color:#0F3FC8">一般推荐</em>)</li></ul></div><!-- Tag -->]]></content:encoded>
			<wfw:commentRss>http://www.satsuns.com/ci/2113.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>智能手机Web开发笔记</title>
		<link>http://www.satsuns.com/android/2111.html</link>
		<comments>http://www.satsuns.com/android/2111.html#comments</comments>
		<pubDate>Thu, 05 Jan 2012 05:10:26 +0000</pubDate>
		<dc:creator>phelps</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[DojoMobile]]></category>

		<guid isPermaLink="false">http://www.satsuns.com/?p=2111</guid>
		<description><![CDATA[智能手机版（简称M版）前端开发终于告一段落，第一次做移动端开发，没有想象中那么难搞，但是期间也遇到了各种这样那样的问题，虽然从小日记都不是自己写的，但是开发笔记还是要自己写的，不敢说让别人学习，只是仅以备忘，这算是序了。 关于M版，目前我们只考虑 iphone 跟 android 手机的兼容性，也就是说只需要考虑 webkit 内核的手机浏览器，这样可以放开大胆的使用 HTML5、CSS3 来实现一些效果，完全不用考虑 IE6，甚至连 IE 都不用考虑，这一点对于很多时间都在纠结于各种浏览器兼容性的我们来说具有很大的新鲜感，一个字，很爽，各种爽啊~ 废话完了，笔记如下： 1、各种border-radius，box-shadow，-webkit-gradient 只要是能用上的都给用上，还不打折~这样整套下来整个项目的图片基本上就只剩下几个图标了。特别需要提起的是用 border 模拟三角箭头的时候有点意思，这个东西已经出现很多年了，只是限于IE6不能实现 background:transparent 效果而导致没有得到广泛应用，说有点意思是因为我们需要模拟的三角是有边框的，设计师伤不起啊，惹他们不高兴了就给你来各种圆角、各种边框(开个玩笑玩笑，19UED还是相当和谐的~)，最后采用的方法是在模拟的三角里再绝对定位一个 border 小 1px 的三角，算是小技巧吧。 2、样式屏蔽 手机端屏幕都很小，如果要让样式只在手机端显示可以用 media 来控制屏幕样式 &#60;link rel=“stylesheet” href=“m-only.css” media=“only screen and (max-device-width: 480px)” /&#62; 这个属性相当重要，当你发现页面可能没法缩放，甚至连滚动都不行的时候就有可能是没有设置viewport或者设置不对。 viewport的参数： &#60;meta name=“viewport” content=“width=device-width,minimum-scale=1.0,maximum-scale=1.0″ /&#62; width: 手机模拟PC浏览器的宽度，然后手机浏览器根据这个宽度把页面同比缩放到手机屏幕上。width:的特殊值device-width的是设备宽度； height：同width； user-scalable：是否允许用户缩放，有yes和no两个值； initial-scale：初始缩放比例； minimum-scale和maximum-scale:最小和最大缩放比例； 相关文档： http://learnthemobileweb.com/tag/viewport/ 4、position fixed 做过 iphone [...]]]></description>
			<content:encoded><![CDATA[<p>智能手机版（简称M版）前端开发终于告一段落，第一次做移动端开发，没有想象中那么难搞，但是期间也遇到了各种这样那样的问题，虽然从小日记都不是自己写的，但是开发笔记还是要自己写的，不敢说让别人学习，只是仅以备忘，这算是序了。</p>
<p>关于M版，目前我们只考虑 iphone 跟 android 手机的兼容性，也就是说只需要考虑 webkit 内核的手机浏览器，这样可以放开大胆的使用 HTML5、CSS3 来实现一些效果，完全不用考虑 IE6，甚至连 IE 都不用考虑，这一点对于很多时间都在纠结于各种浏览器兼容性的我们来说具有很大的新鲜感，一个字，很爽，各种爽啊~</p>
<p>废话完了，笔记如下：</p>
<h4>1、各种border-radius，box-shadow，-webkit-gradient</h4>
<p>只要是能用上的都给用上，还不打折~这样整套下来整个项目的图片基本上就只剩下几个图标了。特别需要提起的是用 border 模拟三角箭头的时候有点意思，这个东西已经出现很多年了，只是限于IE6不能实现 background:transparent 效果而导致没有得到广泛应用，说有点意思是因为我们需要模拟的三角是有边框的，设计师伤不起啊，惹他们不高兴了就给你来各种圆角、各种边框(开个玩笑玩笑，19UED还是相当和谐的~)，最后采用的方法是在模拟的三角里再绝对定位一个 border 小 1px 的三角，算是小技巧吧。</p>
<h4>2、样式屏蔽</h4>
<p>手机端屏幕都很小，如果要让样式只在手机端显示可以用 media 来控制屏幕样式</p>
<pre class="brush: php;">
&lt;link rel=“stylesheet” href=“m-only.css” media=“only screen and (max-device-width: 480px)” /&gt;
</pre>
<p>这个属性相当重要，当你发现页面可能没法缩放，甚至连滚动都不行的时候就有可能是没有设置viewport或者设置不对。</p>
<p><strong>viewport的参数：</strong></p>
<pre class="brush: php;">
&lt;meta name=“viewport” content=“width=device-width,minimum-scale=1.0,maximum-scale=1.0″ /&gt;
</pre>
<p>width: 手机模拟PC浏览器的宽度，然后手机浏览器根据这个宽度把页面同比缩放到手机屏幕上。width:的特殊值device-width的是设备宽度；<br />
height：同width；<br />
user-scalable：是否允许用户缩放，有yes和no两个值；<br />
initial-scale：初始缩放比例；<br />
minimum-scale和maximum-scale:最小和最大缩放比例；</p>
<p>相关文档：<br />
<a href="http://learnthemobileweb.com/tag/viewport/" target="_blank">http://learnthemobileweb.com/tag/viewport/</a></p>
<h4>4、position fixed</h4>
<p>做过 iphone Web 页面的应该都有遇到过这个问题，手机端的webkit内核浏览器不支持CSS的position: fixed<br />
解释在这里：<a href="http://doctyper.com/archives/200808/fixed-positioning-on-mobile-safari/" target="_blank">Doctyper</a></p>
<blockquote><p>http://doctyper.com/archives/200808/fixed-positioning-on-mobile-safari/<br />
Imagine a book in front of you. Take a piece of paper, cut a 320×416 square in it, and lay it over the book. To read the book, move the paper around and position the hole over the words you want to see. This is exactly what Mobile Safari’s viewport is doing. When you flick and scroll, you’re moving the viewport around while the website behind it stays static.</p></blockquote>
<p>但是我们确实会需要将某些东西固定在页面上的某个位置，目前只有用JS来解决这个问题，给出两个链接，说的很详细了，不做赘述。<br />
相关文档：<br />
<a href="http://cubiq.org/scrolling-div-on-iphone-ipod-touch" target="_blank">http://cubiq.org/scrolling-div-on-iphone-ipod-touch</a><br />
<a href="http://cubiq.org/iscroll" target="_blank">http://cubiq.org/iscroll</a></p>
<p>最后由于综合到手机页面的可视区域和实现成本的考虑，我们最终放弃了在页面固定导航区域的设计，所以页面上不会看到相关代码。</p>
<h4>5、重力感应</h4>
<p>iphone或者android的重力感应游戏蛮有意思，我们的页面上能不能做重力感应的效果呢？通过window.orientation就可以实现，这个属性可以获取到当前页面方向，然后写上对应的操作就可以了，比如</p>
<pre class="brush: php;">
window.onorientationchange = function(){
var orient = Math.abs(window.orientation);
switch ( orient ) {
case 90 :
statement;
break;
case -90 :
statement;
break;
default :
statement;
}
}
</pre>
<p><em>window.orientation 有4个值:<br />
０ 正常的竖直方向<br />
-90 默认方向顺时针90°<br />
90 默认方向逆时针90°<br />
180 反向竖直方向，暂时手机还不支持</em></p>
<h4>6、触摸操作</h4>
<p>在iphone跟android手机里我们都是通过触摸屏幕来进行各种交互操作，传统的PC端hover操作这里就不存在了(CSS里的hover伪类效果会显示在元素点击后上，而且如果没有再次点击会一直保持)，这样CSS里的hover就可以完全删掉了。</p>
<p>交互操作有两种:</p>
<p>一种是单手指操作触摸，相关事件有 touchstart,touchmove,touchend 和 touchcancel，这几个事件最重要的属性是pageX和 pageY，表示X和Y坐标，发出这些事件的时候监听器会接收到一个event对象，包括touches（触摸对象集合）和targetTouches。</p>
<p>另外一个交互操作就是两个手指的缩放和旋转，相关事件有gesturestart、gestureend 和 gesturechange，事件监听器也会接受到event对象参数，包含 event.scale (缩放比例)和 event.rotate (旋转角度)两个参数,如果我们要旋转，可以配合CSS3 transform 来实现。</p>
<p>相关文档：<br />
<a href="http://www.slideshare.net/pp.koch/the-touch-events" target="_blank">http://www.slideshare.net/pp.koch/the-touch-events</a><br />
<a href="http://developer.apple.com/library/safari/#documentation/appleapplications/reference/safariwebcontent/handlingevents/handlingevents.html" target="_blank">http://developer.apple.com/library/safari/#documentation/appleapplications/reference/safariwebcontent/handlingevents/handlingevents.html</a></p>
<h4>7、特殊链接</h4>
<p>在PC端里，我们有时候会用到mailto来实现邮件的发送，在手机端里，也有类似的tel和sms来实现拨打电话和发送短信的操作，比如：</p>
<pre class="brush: php;">
&lt;a href=“tel:0571″&gt;电话&lt;/a&gt;
&lt;a href=“sms:0571″&gt;短信&lt;/a&gt;
</pre>
<p>另外还有一些其他的特殊链接<br />
如email、google map、YouTube和ihpone中启动iTunes等等，但是这些链接并不需要指定如tel和sms之类的特殊URL模式，只要链接地址符合相应的规则就可以了。</p>
<h4>8、添加快捷方式到主屏幕</h4>
<p>通过在head标签里添加
<linkrel="apple-touch-icon"href="custom_icon.png"/> 可以在 safari 里添加页面快捷方式至主屏幕，custom_icon.png 为 57px *57px 的PNG图片，经测试图片可以不放在网站根目录下~</p>
<p>另外据说用 apple-touch-icon 并不能解决 android 下默认浏览器的问题（android下需要先添加书签，然后再编辑书签添加到桌面），用自己的破手机测试却没有发现问题……</p>
<div class="similarity"><h2 style="color:#879E17">SatSun Studio 官方推荐文章</h2><ul><li><a href="http://www.satsuns.com/dojo/1601.html">Using Dojo Mobile||Dojo手机开发</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/dojo/1605.html">dojox.mobile｜API中文示例</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/dojo/1625.html">DOJO中国　我们来了</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/dojo/1668.html">Dojo Mobile 手机开发 还是官方示例更给力</a> (<strong style="color:red">特别推荐</strong>)</li><li><a href="http://www.satsuns.com/android/434.html">Android 手机十大必备软件</a> (<em style="color:#0FD383">推荐</em>)</li><li><a href="http://www.satsuns.com/technicalprinciple/554.html">手机写博客 WordPress for Android软件评测</a> (<em style="color:#0FD383">推荐</em>)</li><li><a href="http://www.satsuns.com/android/627.html">Android十大优秀应用软件</a> (<em style="color:#0FD383">推荐</em>)</li><li><a href="http://www.satsuns.com/android/694.html">Andriod被排出Linux内核的原因</a> (<em style="color:#0FD383">推荐</em>)</li><li><a href="http://www.satsuns.com/android/827.html">魅族M9 翻炒了那么久 果然很牛。</a> (<em style="color:#0FD383">推荐</em>)</li><li><a href="http://www.satsuns.com/android/922.html">愤怒的小鸟 PC版||愤怒的小鸟 S60V5版||愤怒的小鸟 安卓版 Android.||Symbian^3</a> (<em style="color:#0FD383">推荐</em>)</li><li><a href="http://www.satsuns.com/default/1719.html">我的谷歌广告不显示了，但是不是帐号停用 该如何解决啊？</a> (RANDOM - <em style="color:#0FD383">推荐</em>)</li></ul></div><!-- Tag -->]]></content:encoded>
			<wfw:commentRss>http://www.satsuns.com/android/2111.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

