<?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>绿野仙踪 &#187; php</title>
	<atom:link href="http://w.wkdisk.cn/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://w.wkdisk.cn</link>
	<description>仍在路上</description>
	<lastBuildDate>Mon, 18 Dec 2023 16:50:17 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1</generator>
	<item>
		<title>GPS日志插件更新</title>
		<link>http://w.wkdisk.cn/gps-wordpress/</link>
		<comments>http://w.wkdisk.cn/gps-wordpress/#comments</comments>
		<pubDate>Fri, 27 Aug 2010 15:11:40 +0000</pubDate>
		<dc:creator><![CDATA[billy]]></dc:creator>
				<category><![CDATA[gps日志系统]]></category>
		<category><![CDATA[gps]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.wangjian.info/?p=582</guid>
		<description><![CDATA[终于在两年后把gps的这个插件加上了照片导入功能。现在显示的gps轨迹已经带了照片的经纬度并显示照片。通过ph [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>终于在两年后把gps的这个插件加上了照片导入功能。现在显示的gps轨迹已经带了照片的经纬度并显示照片。通过php读取exif信息读出经纬度然后存入数据库。</p>
<p>同时还需要做的就是将这个照片导入和wordpress的相册插件结合起来，另外增加一些别的功能如相册浏览，exif信息等。</p>
<p>下一步需要增加海拔和速度的图表，更加直观。</p>
]]></content:encoded>
			<wfw:commentRss>http://w.wkdisk.cn/gps-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>nginx apache xcache 效果对比测试</title>
		<link>http://w.wkdisk.cn/nginx-vs-apche-with-xcache/</link>
		<comments>http://w.wkdisk.cn/nginx-vs-apche-with-xcache/#comments</comments>
		<pubDate>Sat, 22 Nov 2008 16:52:56 +0000</pubDate>
		<dc:creator><![CDATA[billy]]></dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[我的网站]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[xcache]]></category>

		<guid isPermaLink="false">/?p=163</guid>
		<description><![CDATA[安装后我进行了测试以下为测试结果 分别开启关闭xcache 运行两次ab -n 1000 http://bbs [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>安装后我进行了测试以下为测试结果<br />
分别开启关闭xcache 运行两次ab -n 1000 <a href="http://bbs.k12zy.com/forum-19-1.html">http://bbs.k12zy.com/forum-19-1.html</a></p>
<blockquote><p>Server Software:           <span style="color: #0000ff;">nginx/0.6.33</span><br />
Server Hostname:        bbs.k12zy.com<br />
Server Port:                  80<br />
Document Path:          /forum-19-1.html<br />
Document Length:      32118 bytes</p>
<p>Time taken for tests:     38.976547 seconds<br />
Requests per second:    25.66 [#/sec] (mean)<br />
Time per request:          38.977 [ms] (mean)<br />
Time per request:          38.977 [ms] (mean, across all concurrent requests)<br />
Transfer rate:                 814.16 [Kbytes/sec] received</p>
<p><span style="color: #ff0000;">Time taken for tests:     17.326479 seconds<br />
Requests per second:    57.72 [#/sec] (mean)<br />
Time per request:          17.326 [ms] (mean)<br />
Time per request:          17.326 [ms] (mean, across all concurrent requests)<br />
Transfer rate:                1831.47 [Kbytes/sec] received</span></p>
<p>那么apache服务器的效果如何呢，又做了测试</p>
<p>Server Software:        <span style="color: #0000ff;">Apache/2.2.3</span><br />
Server Hostname:        121.250.15.4<br />
Server Port:            80<br />
Document Path:          /forum-19-1.html<br />
Document Length:       32116 bytes</p>
<p><span style="color: #000080;">Time taken for tests:     32.138246 seconds<br />
Requests per second:    31.12 [#/sec] (mean)<br />
Time per request:          32.138 [ms] (mean)<br />
Time per request:          32.138 [ms] (mean, across all concurrent requests)<br />
Transfer rate:                 988.04 [Kbytes/sec] received</span></p>
<p><span style="color: #ff00ff;">Time taken for tests:     20.6633 seconds<br />
Requests per second:    49.98 [#/sec] (mean)<br />
Time per request:          20.007 [ms] (mean)<br />
Time per request:          20.007 [ms] (mean, across all concurrent requests)<br />
Transfer rate:                1587.17 [Kbytes/sec] received</span></p></blockquote>
<p> 其中红色为开启xcache的值</p>
<p>结果来看开启xcache肯定要快，至于apache和nginx的fastcgi来比较缺让人看的不清楚， 只能解释由于第一次测试的是nginx不开xcache可能在数据库端使其变慢，都以一次测试的值也不能算作科学统计，仅做为自己的测试吧。</p>
]]></content:encoded>
			<wfw:commentRss>http://w.wkdisk.cn/nginx-vs-apche-with-xcache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>安装 xcache 加速php</title>
		<link>http://w.wkdisk.cn/xcache-install/</link>
		<comments>http://w.wkdisk.cn/xcache-install/#comments</comments>
		<pubDate>Sat, 22 Nov 2008 15:44:33 +0000</pubDate>
		<dc:creator><![CDATA[billy]]></dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[我的网站]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[xcache]]></category>

		<guid isPermaLink="false">/?p=159</guid>
		<description><![CDATA[在服务器中安装了xcache，来加速php的运行。 关于xcache 可以查看 http://www.ibm. [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>在服务器中安装了xcache，来加速php的运行。</p>
<p>关于xcache 可以查看 <a href="http://www.ibm.com/developerworks/cn/opensource/os-php-fastapps1/">http://www.ibm.com/developerworks/cn/opensource/os-php-fastapps1/</a></p>
<blockquote><p>yum install php-devel</p>
<p>wget <a href="http://xcache.lighttpd.net/pub/Releases/1.2.2/xcache-1.2.2.tar.gz">http://xcache.lighttpd.net/pub/Releases/1.2.2/xcache-1.2.2.tar.gz</a><br />
tar -xvf xcache-1.2.2.tar.gz<br />
cd xcache-1.2.2<br />
phpize</p>
<p>./configure &#8211;enable-xcache &#8211;enable-xcache-coverager<br />
make<br />
make install</p></blockquote>
<p>得到结果：<br />
Installing shared extensions:     /usr/lib/php/modules/<br />
将配置加入php.ini<br />
cat xcache.ini &gt;&gt; /etc/php.ini</p>
<p>编辑php.ini 将 xcache.so的路径改为  /usr/lib/php/modules/xcache.so<br />
重启fastcgi spawn-fcgi -a 127.0.0.1 -p 9000 -C 5 -u nobody -g nobody -f /usr/bin/php-cgi<br />
安装 XCache Administration<br />
修改php.ini xcache.admin.pass=&#8221;&#8221; 为md5(&#8220;密码&#8221;)的值</p>
<p>复制 admin 文件夹到web目录</p>
<p>浏览器中浏览</p>
<p>启用后居然不管用原来默认配置中xcache.size和xcache.var_size都是0M  改成合适的数值就好</p>
<p>参考：<a href="http://www.ibm.com/developerworks/cn/opensource/os-php-fastapps1/">http://www.ibm.com/developerworks/cn/opensource/os-php-fastapps1/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://w.wkdisk.cn/xcache-install/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nginx 的配置</title>
		<link>http://w.wkdisk.cn/nginx-fastcgi-php-rewrite-config/</link>
		<comments>http://w.wkdisk.cn/nginx-fastcgi-php-rewrite-config/#comments</comments>
		<pubDate>Sat, 22 Nov 2008 14:01:30 +0000</pubDate>
		<dc:creator><![CDATA[billy]]></dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[我的网站]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">/?p=144</guid>
		<description><![CDATA[加入了php的支持，nginx使用的是fastcgi。 我使用的是centos5.2系统，其中已经通过yum安 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>加入了php的支持，nginx使用的是fastcgi。</p>
<p>我使用的是centos5.2系统，其中已经通过yum安装了php，因为不想再自己重新编译了就采用spawn-fcgi的方式来做fastcgi，spawn-fcgi包含在lighttpd，</p>
<blockquote><p>wget lighttpd</p>
<p>./configure;</p>
<p>make;</p>
<p>cp src/spawn-fcgi /usr/bin/spawn-fcgi</p>
<p>spawn-fcgi -a 127.0.0.1 -p 9000 -C 5 -u nobody -g nobody -f /usr/bin/php-cgi</p></blockquote>
<p>加入开机启动</p>
<p><span style="color: #3366ff;">nginx 配置</span></p>
<p>加入了rewrite来做永久链接</p>
<blockquote><p>server {<br />
listen 222.132.76.204:80;<br />
server_name <a href="http://www.wangjian.info">www.wangjian.info</a>;<br />
access_log  /export/hd1/weblog/gpsview.access.log  main;</p>
<p>location / {<br />
root /export/hd1/web/blog/;<br />
index index.php;</p>
<p>if (-f $request_filename/index.html){<br />
   rewrite (.*) $1/index.html break;<br />
} <br />
if (-f $request_filename/index.php){<br />
   rewrite (.*) $1/index.php;<br />
}<br />
if (!-f $request_filename){<br />
   rewrite (.*) /index.php;<br />
}<br />
location ~ .php$ {<br />
fastcgi_pass 127.0.0.1:9000;<br />
fastcgi_index index.php;<br />
fastcgi_param SCRIPT_FILENAME /export/hd1/web/blog$fastcgi_script_name;<br />
include fastcgi_params;<br />
}<br />
}<br />
}</p></blockquote>
<p>OK了，经过感觉，速度好像是快了点。继续测试中。</p>
]]></content:encoded>
			<wfw:commentRss>http://w.wkdisk.cn/nginx-fastcgi-php-rewrite-config/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
