<?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>CQPEA - PEA重庆分会 &#187; PHPers&#8217; Action</title>
	<atom:link href="http://www.cqpea.com/index.php/archives/category/phpers-action/feed" rel="self" type="application/rss+xml" />
	<link>http://www.cqpea.com</link>
	<description></description>
	<lastBuildDate>Sat, 16 Jul 2011 05:48:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>关于Web页面字体</title>
		<link>http://www.gaobo.info/read.php/776.htm</link>
		<comments>http://www.gaobo.info/read.php/776.htm#comments</comments>
		<pubDate>Sat, 16 Jul 2011 05:48:49 +0000</pubDate>
		<dc:creator>Doctor</dc:creator>
				<category><![CDATA[PHPers' Action]]></category>

		<guid isPermaLink="false">http://www.gaobo.info/read.php/776.htm</guid>
		<description><![CDATA[
 
	几个页面字体适配度比较好的，HTML body 字体的定义：&#8226;Google: font-family: arial,sans-serif;&#8226;Twitter：font: 13px/1.5 Helvetica Neue,Arial,Helvetica,'Liberation Sans',FreeSans,sans-serif&#8226;豆瓣：font: 12px/162% Ari...]]></description>
			<content:encoded><![CDATA[
 
	<p>几个页面字体适配度比较好的，HTML body 字体的定义：</p><p>&bull;Google: font-family: arial,sans-serif;<br />&bull;Twitter：font: 13px/1.5 Helvetica Neue,Arial,Helvetica,'Liberation Sans',FreeSans,sans-serif<br />&bull;豆瓣：font: 12px/162% Arial,Helvetica,sans-serif;<br />&bull;新浪微博：font-family: Arial,Helvetica,sans-serif;<br />&bull;Apple中国：font: 12px/18px &quot;Lucida Grande&quot;,&quot;Lucida Sans Unicode&quot;,Helvetica,Arial,Verdana,sans-serif;<br />&bull;知乎: font: 13px/22px 'Helvetica Neue',Helvetica,Arial,Sans-serif;<br />&bull;Facebook: font-family: &quot;lucida grande&quot;,tahoma,verdana,arial,sans-serif;<br />&bull;Google+: font: 13px arial,sans-serif;<br /><strong>结论：Arial,Helvetica,Sans-serif 这个组合适配性是最好的，也是最保险的。可选：Helvetica Neue。知乎的定义几乎可以直接照用。</strong></p><p>其它：</p><p>&bull;微软中国: font-family: Segoe UI,Tahoma,Arial,Verdana,sans-serif;<br />&bull;淘宝：font: 12px/1.5 tahoma,arial,宋体; //看过淘宝同学写过的很棒的字体文章，估计页面不是统一定义的<br />&bull;百度：font: 12px arial;<br />&bull;QQ: font-family: &quot;宋体&quot;,&quot;Arial Narrow&quot;;<br />&bull;新浪：font-family: &quot;SimSun&quot;,&quot;Arial Narrow&quot;;　//最烂<br /><strong>结论：用了宋体的，都比较烂。。。中文网站要想页面视觉稍微好一点，直接去掉CSS中的宋体</strong></p><br/>Tags - <a href="http://www.gaobo.info/go.php/tags/web/" rel="tag">web</a> , <a href="http://www.gaobo.info/go.php/tags/font/" rel="tag">font</a> , <a href="http://www.gaobo.info/go.php/tags/%25E5%25AD%2597%25E4%25BD%2593/" rel="tag">字体</a> , <a href="http://www.gaobo.info/go.php/tags/arial/" rel="tag">arial</a> , <a href="http://www.gaobo.info/go.php/tags/sans/" rel="tag">sans</a> , <a href="http://www.gaobo.info/go.php/tags/helvetica/" rel="tag">helvetica</a>

]]></content:encoded>
			<wfw:commentRss>http://www.cqpea.com/index.php/archives/475/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>敏捷13</title>
		<link>http://www.gaobo.info/read.php/769.htm</link>
		<comments>http://www.gaobo.info/read.php/769.htm#comments</comments>
		<pubDate>Sun, 29 May 2011 12:56:45 +0000</pubDate>
		<dc:creator>Doctor</dc:creator>
				<category><![CDATA[PHPers' Action]]></category>

		<guid isPermaLink="false">http://www.gaobo.info/read.php/769.htm</guid>
		<description><![CDATA[
 
	敏捷是整个团队围绕着圆桌一起工作，没有任何沟通障碍敏捷是正确理解和挖掘需求，按照业务进行分解，并且有优先级的排列敏捷是所有的需求和开发任务都全部贴在墙上，完全可视化]]></description>
			<content:encoded><![CDATA[
 
	<ol><li>敏捷是整个团队围绕着圆桌一起工作，没有任何沟通障碍</li><li>敏捷是正确理解和挖掘需求，按照业务进行分解，并且有优先级的排列</li><li>敏捷是所有的需求和开发任务都全部贴在墙上，完全可视化管理。需求和任务的细节部分统一在Wiki上记录、维护和整理</li><li>敏捷是每个人都可以自由去墙上领取工作，大家只有一个目标，那就是把项目做好</li><li>敏捷是业务被合理的建模，同时代码被很好的设计</li><li>敏捷是代码每个方法在10行左右，能够表达业务意图，没有重复，遵循开闭原则，修改尽可能在一个地方</li><li>敏捷是代码集体所有制，每天早上做Code Review，大家都有能力修改所有的功能模块</li><li>敏捷是大部分功能都有自动化测试保障，如果测试失败，那么必须第一优先级修复</li><li>敏捷是系统界面简洁，好的交互设计，稳定可靠，良好的性能</li><li>敏捷是自动化编译、打包、部署、升级</li><li>敏捷是不断交付可用的软件，周期从几周到几个月不等，越快越好</li><li>敏捷是团队每周一次learning session，大家追求卓越，互相学习提高，对技术精益求精，对设计不断完善</li><li>敏捷是大家肩并肩地工作，互相尊重、信任、欣赏和协作</li></ol><br/>Tags - <a href="http://www.gaobo.info/go.php/tags/%25E6%2595%258F%25E6%258D%25B7/" rel="tag">敏捷</a> , <a href="http://www.gaobo.info/go.php/tags/agile/" rel="tag">agile</a>

]]></content:encoded>
			<wfw:commentRss>http://www.cqpea.com/index.php/archives/471/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>敏捷13</title>
		<link>http://www.gaobo.info/read.php/769.htm</link>
		<comments>http://www.gaobo.info/read.php/769.htm#comments</comments>
		<pubDate>Sun, 29 May 2011 12:56:45 +0000</pubDate>
		<dc:creator>Doctor</dc:creator>
				<category><![CDATA[PHPers' Action]]></category>

		<guid isPermaLink="false">http://www.gaobo.info/read.php/769.htm</guid>
		<description><![CDATA[
 
	敏捷是整个团队围绕着圆桌一起工作，没有任何沟通障碍敏捷是正确理解和挖掘需求，按照业务进行分解，并且有优先级的排列敏捷是所有的需求和开发任务都全部贴在墙上，完全可视化]]></description>
			<content:encoded><![CDATA[
 
	<ol><li>敏捷是整个团队围绕着圆桌一起工作，没有任何沟通障碍</li><li>敏捷是正确理解和挖掘需求，按照业务进行分解，并且有优先级的排列</li><li>敏捷是所有的需求和开发任务都全部贴在墙上，完全可视化管理。需求和任务的细节部分统一在Wiki上记录、维护和整理</li><li>敏捷是每个人都可以自由去墙上领取工作，大家只有一个目标，那就是把项目做好</li><li>敏捷是业务被合理的建模，同时代码被很好的设计</li><li>敏捷是代码每个方法在10行左右，能够表达业务意图，没有重复，遵循开闭原则，修改尽可能在一个地方</li><li>敏捷是代码集体所有制，每天早上做Code Review，大家都有能力修改所有的功能模块</li><li>敏捷是大部分功能都有自动化测试保障，如果测试失败，那么必须第一优先级修复</li><li>敏捷是系统界面简洁，好的交互设计，稳定可靠，良好的性能</li><li>敏捷是自动化编译、打包、部署、升级</li><li>敏捷是不断交付可用的软件，周期从几周到几个月不等，越快越好</li><li>敏捷是团队每周一次learning session，大家追求卓越，互相学习提高，对技术精益求精，对设计不断完善</li><li>敏捷是大家肩并肩地工作，互相尊重、信任、欣赏和协作</li></ol><br/>Tags - <a href="http://www.gaobo.info/go.php/tags/%25E6%2595%258F%25E6%258D%25B7/" rel="tag">敏捷</a> , <a href="http://www.gaobo.info/go.php/tags/agile/" rel="tag">agile</a>

]]></content:encoded>
			<wfw:commentRss>http://www.cqpea.com/index.php/archives/472/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>敏捷13</title>
		<link>http://www.gaobo.info/read.php/769.htm</link>
		<comments>http://www.gaobo.info/read.php/769.htm#comments</comments>
		<pubDate>Sun, 29 May 2011 12:56:45 +0000</pubDate>
		<dc:creator>Doctor</dc:creator>
				<category><![CDATA[PHPers' Action]]></category>

		<guid isPermaLink="false">http://www.gaobo.info/read.php/769.htm</guid>
		<description><![CDATA[
 
	敏捷是整个团队围绕着圆桌一起工作，没有任何沟通障碍敏捷是正确理解和挖掘需求，按照业务进行分解，并且有优先级的排列敏捷是所有的需求和开发任务都全部贴在墙上，完全可视化]]></description>
			<content:encoded><![CDATA[
 
	<ol><li>敏捷是整个团队围绕着圆桌一起工作，没有任何沟通障碍</li><li>敏捷是正确理解和挖掘需求，按照业务进行分解，并且有优先级的排列</li><li>敏捷是所有的需求和开发任务都全部贴在墙上，完全可视化管理。需求和任务的细节部分统一在Wiki上记录、维护和整理</li><li>敏捷是每个人都可以自由去墙上领取工作，大家只有一个目标，那就是把项目做好</li><li>敏捷是业务被合理的建模，同时代码被很好的设计</li><li>敏捷是代码每个方法在10行左右，能够表达业务意图，没有重复，遵循开闭原则，修改尽可能在一个地方</li><li>敏捷是代码集体所有制，每天早上做Code Review，大家都有能力修改所有的功能模块</li><li>敏捷是大部分功能都有自动化测试保障，如果测试失败，那么必须第一优先级修复</li><li>敏捷是系统界面简洁，好的交互设计，稳定可靠，良好的性能</li><li>敏捷是自动化编译、打包、部署、升级</li><li>敏捷是不断交付可用的软件，周期从几周到几个月不等，越快越好</li><li>敏捷是团队每周一次learning session，大家追求卓越，互相学习提高，对技术精益求精，对设计不断完善</li><li>敏捷是大家肩并肩地工作，互相尊重、信任、欣赏和协作</li></ol><br/>Tags - <a href="http://www.gaobo.info/go.php/tags/%25E6%2595%258F%25E6%258D%25B7/" rel="tag">敏捷</a> , <a href="http://www.gaobo.info/go.php/tags/agile/" rel="tag">agile</a>

]]></content:encoded>
			<wfw:commentRss>http://www.cqpea.com/index.php/archives/473/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>敏捷13</title>
		<link>http://www.gaobo.info/read.php/769.htm</link>
		<comments>http://www.gaobo.info/read.php/769.htm#comments</comments>
		<pubDate>Sun, 29 May 2011 12:56:45 +0000</pubDate>
		<dc:creator>Doctor</dc:creator>
				<category><![CDATA[PHPers' Action]]></category>

		<guid isPermaLink="false">http://www.gaobo.info/read.php/769.htm</guid>
		<description><![CDATA[
 
	敏捷是整个团队围绕着圆桌一起工作，没有任何沟通障碍敏捷是正确理解和挖掘需求，按照业务进行分解，并且有优先级的排列敏捷是所有的需求和开发任务都全部贴在墙上，完全可视化]]></description>
			<content:encoded><![CDATA[
 
	<ol><li>敏捷是整个团队围绕着圆桌一起工作，没有任何沟通障碍</li><li>敏捷是正确理解和挖掘需求，按照业务进行分解，并且有优先级的排列</li><li>敏捷是所有的需求和开发任务都全部贴在墙上，完全可视化管理。需求和任务的细节部分统一在Wiki上记录、维护和整理</li><li>敏捷是每个人都可以自由去墙上领取工作，大家只有一个目标，那就是把项目做好</li><li>敏捷是业务被合理的建模，同时代码被很好的设计</li><li>敏捷是代码每个方法在10行左右，能够表达业务意图，没有重复，遵循开闭原则，修改尽可能在一个地方</li><li>敏捷是代码集体所有制，每天早上做Code Review，大家都有能力修改所有的功能模块</li><li>敏捷是大部分功能都有自动化测试保障，如果测试失败，那么必须第一优先级修复</li><li>敏捷是系统界面简洁，好的交互设计，稳定可靠，良好的性能</li><li>敏捷是自动化编译、打包、部署、升级</li><li>敏捷是不断交付可用的软件，周期从几周到几个月不等，越快越好</li><li>敏捷是团队每周一次learning session，大家追求卓越，互相学习提高，对技术精益求精，对设计不断完善</li><li>敏捷是大家肩并肩地工作，互相尊重、信任、欣赏和协作</li></ol><br/>Tags - <a href="http://www.gaobo.info/go.php/tags/%25E6%2595%258F%25E6%258D%25B7/" rel="tag">敏捷</a> , <a href="http://www.gaobo.info/go.php/tags/agile/" rel="tag">agile</a>

]]></content:encoded>
			<wfw:commentRss>http://www.cqpea.com/index.php/archives/474/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>尝鲜Flash Builder 4.5 for PHP</title>
		<link>http://www.gaobo.info/read.php/767.htm</link>
		<comments>http://www.gaobo.info/read.php/767.htm#comments</comments>
		<pubDate>Tue, 10 May 2011 10:45:46 +0000</pubDate>
		<dc:creator>Doctor</dc:creator>
				<category><![CDATA[PHPers' Action]]></category>

		<guid isPermaLink="false">http://www.gaobo.info/read.php/767.htm</guid>
		<description><![CDATA[
 
	Flash Builder 4.5 for PHP出来有几天了，打算安装来玩玩。下载了安装包（900多MB，够大）后直接安装，但快到最后的时候提示安装失败。。。我X，神马意思嘛。Google了许久没发现遇到这种情况...]]></description>
			<content:encoded><![CDATA[
 
	Flash Builder 4.5 for PHP出来有几天了，打算安装来玩玩。下载了安装包（900多MB，够大）后直接安装，但快到最后的时候提示安装失败。。。我X，神马意思嘛。<br />Google了许久没发现遇到这种情况的，连老外都没遇到过。自己摸索吧~~<br />尝试删除所有已安装的Adobe和Zend软件：Flash Builder 4.5 Burrito（就是测试版）、Zend Studio 8&hellip;&hellip;&hellip;&hellip;<br />然后下载Flash Builder 4.5安装，再X一次，看安装程序界面，Flash Builder 4.5是Adobe出的正统的，Flash Builder 4.5 for PHP怎么看都像是Zend山寨的，囧死。。。。<br />Flash Builder 4.5顺利安装结束后，再尝试安装Flash Builder 4.5 for PHP，好吧，我承认今天RP还是反弹了的，哇哈哈，安装成功！<br/>Tags - <a href="http://www.gaobo.info/go.php/tags/flash/" rel="tag">flash</a> , <a href="http://www.gaobo.info/go.php/tags/builder/" rel="tag">builder</a> , <a href="http://www.gaobo.info/go.php/tags/php/" rel="tag">php</a> , <a href="http://www.gaobo.info/go.php/tags/adobe/" rel="tag">adobe</a> , <a href="http://www.gaobo.info/go.php/tags/zend/" rel="tag">zend</a> , <a href="http://www.gaobo.info/go.php/tags/%25E5%25AE%2589%25E8%25A3%2585/" rel="tag">安装</a>

]]></content:encoded>
			<wfw:commentRss>http://www.cqpea.com/index.php/archives/470/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>12款在线网站速度和性能测试工具</title>
		<link>http://www.gaobo.info/read.php/753.htm</link>
		<comments>http://www.gaobo.info/read.php/753.htm#comments</comments>
		<pubDate>Mon, 13 Dec 2010 13:16:19 +0000</pubDate>
		<dc:creator>Doctor</dc:creator>
				<category><![CDATA[PHPers' Action]]></category>

		<guid isPermaLink="false">http://www.gaobo.info/read.php/753.htm</guid>
		<description><![CDATA[
 
	网站的访问速度对于一个网站非常重要，没有一个人会喜欢速度慢的网站。下面是12款在线测试网站的访问速度和性能的工具，在优化网站的时候很有用。Pingdom测试网站每个元素的加载速]]></description>
			<content:encoded><![CDATA[
 
	<p>网站的访问速度对于一个网站非常重要，没有一个人会喜欢速度慢的网站。下面是12款在线测试网站的访问速度和性能的工具，在优化网站的时候很有用。</p><p><a href="http://tools.pingdom.com/"><strong><span style="color: #5b9eff">Pingdom</span></strong></a></p><p>测试网站每个元素的加载速度，比如html、图片、JS文件等等。<br /><a href="http://gtmetrix.com/"><strong><span style="color: #0066ff">GTmetrix</span></strong></a></p><div id="more"><p>GTmetrix集合了Yslow和Google Page Speed的功能，Yslow和Google Page Speed是两款FireFox的插件，但是这个在线应用可以使用任何的浏览器。它会给出你网站的评分并指出哪些是需要改进的。<br /><a href="http://lightspeednow.com/"><strong><span style="color: #0066ff">Light Speed Now</span></strong></a></p><p>测试网站的速度，然后把报告发送到你的邮箱。<br /><a href="http://loadimpact.com/"><strong><span style="color: #0066ff">Load Impact</span></strong></a></p><p>Load Impact可以说是一个负载测试，看看你的网站能够扛得住多少的流量。免费的用户只能模拟50个用户同时测试，升级到付费的用户可以模拟不限用户的负载测试。<br /><a href="http://site-perf.com/"><strong><span style="color: #0066ff">Site Perf</span></strong></a></p><p>Site Perf可以模拟浏览器进行测试，可以测试各个元素的下载速度。还可以测试每个需要解析的主机的连接时间。<br /><a href="http://webwait.com/"><strong><span style="color: #0066ff">WebWait</span></strong></a></p><p>测试访问速度。<br /><a href="http://www.gomeznetworks.com/custom/instant_test.html"><strong><span style="color: #0066ff">Gomez Networks</span></strong></a></p><p>Gomez Networks测试网站外部元素的加载时间，比如CSS、图片、JS等。<br /><a href="http://www.octagate.com/service/SiteTimer/"><strong><span style="color: #0066ff">Octa Gate</span></strong></a></p><p>Octa Gate测试每个元素的加载时间。<br /><a href="http://www.webslug.info/"><strong><span style="color: #0066ff">Webslug</span></strong></a></p><p>对比两个网站的加载速度。<br /><a href="http://www.webtoolhub.com/tn561353-website-speed-test.aspx"><strong><span style="color: #0066ff">WebToolHub</span></strong></a></p><p>测试不同网络连接下的网站的加载速度。<br /><a href="http://www.iwebtool.com/"><strong><span style="color: #0066ff">iWebTools</span></strong></a></p><p>iWebTools可以最多同时测试10个页面的大小和加载速度。<br /><a href="http://rapid.searchmetrics.com/en/seo-tools/site-analysis/website-speed-test,46.html"><strong><span style="color: #0066ff">SearchMetrics</span></strong></a></p><p>测试网站的外部元素的加载速度，还可以测试在不同的网络带宽下的连接速度。</p></div><br/>Tags - <a href="http://www.gaobo.info/go.php/tags/online/" rel="tag">online</a> , <a href="http://www.gaobo.info/go.php/tags/speed/" rel="tag">speed</a> , <a href="http://www.gaobo.info/go.php/tags/test/" rel="tag">test</a> , <a href="http://www.gaobo.info/go.php/tags/tool/" rel="tag">tool</a> , <a href="http://www.gaobo.info/go.php/tags/site/" rel="tag">site</a> , <a href="http://www.gaobo.info/go.php/tags/%25E5%259C%25A8%25E7%25BA%25BF/" rel="tag">在线</a> , <a href="http://www.gaobo.info/go.php/tags/%25E7%25AB%2599%25E7%2582%25B9/" rel="tag">站点</a> , <a href="http://www.gaobo.info/go.php/tags/%25E7%25BD%2591%25E7%25AB%2599/" rel="tag">网站</a> , <a href="http://www.gaobo.info/go.php/tags/%25E9%2580%259F%25E5%25BA%25A6/" rel="tag">速度</a> , <a href="http://www.gaobo.info/go.php/tags/%25E6%25B5%258B%25E8%25AF%2595/" rel="tag">测试</a> , <a href="http://www.gaobo.info/go.php/tags/%25E5%25B7%25A5%25E5%2585%25B7/" rel="tag">工具</a>

]]></content:encoded>
			<wfw:commentRss>http://www.cqpea.com/index.php/archives/469/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP 5.3下支持加密过的代码的Zend Loader</title>
		<link>http://www.gaobo.info/read.php/745.htm</link>
		<comments>http://www.gaobo.info/read.php/745.htm#comments</comments>
		<pubDate>Fri, 08 Oct 2010 03:03:33 +0000</pubDate>
		<dc:creator>Doctor</dc:creator>
				<category><![CDATA[PHPers' Action]]></category>

		<guid isPermaLink="false">http://www.gaobo.info/read.php/745.htm</guid>
		<description><![CDATA[
 
	从这里下载：http://downloads.zend.com/guard/5.1.0EA/ZendGuardLoader-php-5.3-Windows.zip然后修改php.ini的内容如下：[Zend.loader]zend_loader.enable=1zend_loader.disable_licensing=1zend_loader.obfuscation_level_support=3zend_loader.li...]]></description>
			<content:encoded><![CDATA[
 
	从这里下载：<a href="http://downloads.zend.com/guard/5.1.0EA/ZendGuardLoader-php-5.3-Windows.zip"><a href="http://downloads.zend.com/guard/5.1.0EA/ZendGuardLoader-php-5.3-Windows.zip" >http://downloads.zend.com/guard/5.1.0EA/ZendGuardLoader-php-5.3-Windows.zip</a></a><!-- m --><br />然后修改php.ini的内容如下：<br />[Zend.loader]<br />zend_loader.enable=1<br />zend_loader.disable_licensing=1<br />zend_loader.obfuscation_level_support=3<br />zend_loader.license_path=<br />zend_extension=&quot;c:&#92;php&#92;ext&#92;ZendLoader.dll&quot;<br /><img class="insertimage" src="http://www.gaobo.info/read.php/attachment.php?fid=96" border="0" /><br />顺便提供下载：<a href="http://www.gaobo.info/read.php/attachment.php?fid=97">点击这里下载文件</a><br/>Tags - <a href="http://www.gaobo.info/go.php/tags/php/" rel="tag">php</a> , <a href="http://www.gaobo.info/go.php/tags/zend/" rel="tag">zend</a> , <a href="http://www.gaobo.info/go.php/tags/loader/" rel="tag">loader</a> , <a href="http://www.gaobo.info/go.php/tags/optimizer/" rel="tag">optimizer</a> , <a href="http://www.gaobo.info/go.php/tags/windows/" rel="tag">windows</a> , <a href="http://www.gaobo.info/go.php/tags/iis/" rel="tag">iis</a> , <a href="http://www.gaobo.info/go.php/tags/web/" rel="tag">web</a> , <a href="http://www.gaobo.info/go.php/tags/server/" rel="tag">server</a>

]]></content:encoded>
			<wfw:commentRss>http://www.cqpea.com/index.php/archives/468/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>记录一下SOAP方式连MySQL需要注意的细节</title>
		<link>http://www.gaobo.info/read.php/739.htm</link>
		<comments>http://www.gaobo.info/read.php/739.htm#comments</comments>
		<pubDate>Wed, 29 Sep 2010 12:46:26 +0000</pubDate>
		<dc:creator>Doctor</dc:creator>
				<category><![CDATA[PHPers' Action]]></category>

		<guid isPermaLink="false">http://www.gaobo.info/read.php/739.htm</guid>
		<description><![CDATA[
 
	SOAP方式new对象本身没什么好说的，网上一搜一大堆&#8230;&#8230;需要注意的是：如果SoapServer的类中成员（例如$db）是连接数据库的，那么在构造函数中传入数据库参数，期望在new对象的时]]></description>
			<content:encoded><![CDATA[
 
	SOAP方式new对象本身没什么好说的，网上一搜一大堆&hellip;&hellip;<br />需要注意的是：如果SoapServer的类中成员（例如$db）是连接数据库的，那么在构造函数中传入数据库参数，期望在new对象的时候就一并获得数据库连接就可以执行其他方法是行不通的（花了很久时间才找到原因：PHP内置的SOAP对象不支持子对象的传递和状态保持），因此，可以这样做：<br />1、原有构造函数的功能分为两块：（1）连接数据库的方法（例如InitConn()）；（2）精简版的构造函数，根据一个传入的参数决定是否调用（1）<br />2、原有其他查询数据库的方法在执行逻辑功能之前先检测内部的数据库子对象（例如前述的$db）是否存在，不存在就new一个出来，并调用（1）来连接数据库。同时需要给本方法增加一个新的传入参数，用于存放数据库参数。<br /><br />没有用过的人可能不知道我在说什么，遇到相同问题的话，以上办法可能会派上大用场d～～<br/>Tags - <a href="http://www.gaobo.info/go.php/tags/php/" rel="tag">php</a> , <a href="http://www.gaobo.info/go.php/tags/soap/" rel="tag">soap</a> , <a href="http://www.gaobo.info/go.php/tags/mysql/" rel="tag">mysql</a> , <a href="http://www.gaobo.info/go.php/tags/server/" rel="tag">server</a> , <a href="http://www.gaobo.info/go.php/tags/db/" rel="tag">db</a> , <a href="http://www.gaobo.info/go.php/tags/constructor/" rel="tag">constructor</a> , <a href="http://www.gaobo.info/go.php/tags/%25E6%2595%25B0%25E6%258D%25AE%25E5%25BA%2593/" rel="tag">数据库</a> , <a href="http://www.gaobo.info/go.php/tags/%25E6%259E%2584%25E9%2580%25A0%25E5%2587%25BD%25E6%2595%25B0/" rel="tag">构造函数</a>

]]></content:encoded>
			<wfw:commentRss>http://www.cqpea.com/index.php/archives/467/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>再谈PHP中基于SOAP的WebService</title>
		<link>http://www.gaobo.info/read.php/738.htm</link>
		<comments>http://www.gaobo.info/read.php/738.htm#comments</comments>
		<pubDate>Mon, 27 Sep 2010 13:21:19 +0000</pubDate>
		<dc:creator>Doctor</dc:creator>
				<category><![CDATA[PHPers' Action]]></category>

		<guid isPermaLink="false">http://www.gaobo.info/read.php/738.htm</guid>
		<description><![CDATA[
 
	在使用SOAP编写WebService的过程中主要用到了SoapClient、SoapServer、SoapFault三个类。使用SOAP记得开启curl扩展。SoapClient类用来使用WebService。SoapClient类可以作为给定WebService的客户端。它有两种操...]]></description>
			<content:encoded><![CDATA[
 
	在使用SOAP编写WebService的过程中主要用到了SoapClient、SoapServer、SoapFault三个类。使用SOAP记得开启curl扩展。<br/><br/>SoapClient类用来使用WebService。SoapClient类可以作为给定WebService的客户端。<br/>它有两种操作形式：<br/>* WSDL 模式<br/>* Non-WSDL 模式<br/>在WSDL模式中，构造器可以使用WSDL文件名作为参数，并从WSDL中提取服务所使用的信息。<br/>non-WSDL模式中使用参数来传递要使用的信息。 <br/><br/>SoapServer类用来提供WebService。与SoapClient类似，SoapServer也有两种操作模式：WSDL模式和non-WSDL模式。这两种模式的意义跟SoapClient的两种模式一样。在WSDL模式中，服务实现了WSDL提供的接口；在non-WSDL模式中，参数被用来管理服务的行为。<br/><br/>在SoapServer类的众多方法中，有三个方法比较重要。它们是SoapServer::setClass()、SoapServer::addFunction()和SoapServer::handle()。 <br/><br/>下面给出实例：<br/>定义一个提供服务的php类,这个类所提供的函数就是WebService对外提供的服务<br/><div class="code">&lt;?php<br/>Class PersonInfo<br/>&#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp; /**<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;返回姓名<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;@return string <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/<br/>&nbsp;&nbsp;&nbsp;&nbsp; public function getName()&#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return &quot;My Name is Chance&quot;;<br/>&nbsp;&nbsp;&nbsp;&nbsp; &#125;<br/>&#125;<br/>?&gt;</div><br/>下面给出服务器端的代码： <br/><div class="code">&lt;?php<br/>//包含提供服务的类进来<br/>require_once(&#039;PersonInfo.php&#039;);<br/><br/>//wsdl方式提供WebService,如果生成了wsdl文件则可直接传递到//SoapServer的构造函数中<br/>//$s = new SoapServer(&#039;PersonInfo.wsdl&#039;);<br/><br/>//doesn&#039;t work 只有location不能提供WebService<br/>//output:looks like we got no XML document<br/>//$s = new SoapServer(null,array(&quot;location&quot;=&gt;&quot;http://localhost/Test/MyService/Server.php&quot;));<br/><br/>//下面两种方式均可以工作，只要指定了相应的uri<br/>//$s = new SoapServer(null,array(&quot;uri&quot;=&gt;&quot;Server.php&quot;));<br/>$s = new SoapServer(null,array(&quot;location&quot;=&gt;&quot;http://localhost/Test/MyService/Server.php&quot;,&quot;uri&quot;=&gt;&quot;Server.php&quot;));<br/><br/>$s-&gt;setClass(&quot;PersonInfo&quot;);<br/><br/>$s-&gt;handle();<br/>?&gt;</div><br/>下面是客户端代码：<br/><div class="code">&lt;?php<br/>try&#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;//wsdl方式调用WebService<br/>&nbsp;&nbsp;&nbsp;&nbsp;//wsdl方式中由于wsdl文件写定了，如果发生添加删除函数等操作改动，不会反应到wsdl，相对non-wsdl方式来说不够灵活<br/>&nbsp;&nbsp;&nbsp;&nbsp;//$soap = new SoapClient(&quot;http://localhost/Test/MyService/PersonInfo.wsdl&quot;);<br/>&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;//non-wsdl方式调用WebService&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;//在non-wsdl方式中option location系必须提供的,而服务端的location是选择性的，可以不提供<br/>&nbsp;&nbsp;&nbsp;&nbsp;$soap = new SoapClient(null,array(&#039;location&#039;=&gt;&quot;http://localhost/Test/MyService/Server.php&quot;,&#039;uri&#039;=&gt;&#039;Server.php&#039;));<br/>&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;//两种调用方式，直接调用方法，和用__soapCall简接调用<br/>&nbsp;&nbsp;&nbsp;&nbsp;$result1 = $soap-&gt;getName();<br/>&nbsp;&nbsp;&nbsp;&nbsp;$result2 = $soap-&gt;__soapCall(&quot;getName&quot;,array());<br/>&nbsp;&nbsp;&nbsp;&nbsp;echo $result1.&quot;&lt;br/&gt;&quot;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;echo $result2;<br/>&nbsp;&nbsp;&nbsp;&nbsp;<br/>&#125;catch(SoapFault $e)&#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;echo $e-&gt;getMessage();<br/>&#125;catch(Exception $e)&#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;echo $e-&gt;getMessage();<br/>&#125;<br/>?&gt;</div><br/>Tags - <a href="http://www.gaobo.info/go.php/tags/php/" rel="tag">php</a> , <a href="http://www.gaobo.info/go.php/tags/soap/" rel="tag">soap</a> , <a href="http://www.gaobo.info/go.php/tags/web/" rel="tag">web</a> , <a href="http://www.gaobo.info/go.php/tags/service/" rel="tag">service</a> , <a href="http://www.gaobo.info/go.php/tags/webservice/" rel="tag">webservice</a> , <a href="http://www.gaobo.info/go.php/tags/curl/" rel="tag">curl</a> , <a href="http://www.gaobo.info/go.php/tags/server/" rel="tag">server</a> , <a href="http://www.gaobo.info/go.php/tags/client/" rel="tag">client</a> , <a href="http://www.gaobo.info/go.php/tags/%25E6%259C%258D%25E5%258A%25A1%25E5%2599%25A8/" rel="tag">服务器</a> , <a href="http://www.gaobo.info/go.php/tags/%25E5%25AE%25A2%25E6%2588%25B7%25E7%25AB%25AF/" rel="tag">客户端</a>

]]></content:encoded>
			<wfw:commentRss>http://www.cqpea.com/index.php/archives/465/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
