<?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>Elton&#039;s Blog &#187; PHP</title>
	<atom:link href="http://blog.prosight.me/index.php/category/agile-web-development/php/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.prosight.me</link>
	<description>移动开发，敏捷web开发，Linux服务器部署维护，web UI和UE设计，摄影</description>
	<lastBuildDate>Wed, 08 Feb 2012 00:22:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>为自己的网站实现Heatmap</title>
		<link>http://blog.prosight.me/index.php/2011/08/795?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e4%25b8%25ba%25e8%2587%25aa%25e5%25b7%25b1%25e7%259a%2584%25e7%25bd%2591%25e7%25ab%2599%25e5%25ae%259e%25e7%258e%25b0heatmap</link>
		<comments>http://blog.prosight.me/index.php/2011/08/795#comments</comments>
		<pubDate>Sat, 20 Aug 2011 03:18:23 +0000</pubDate>
		<dc:creator>Elton</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://blog.prosight.me/?p=795</guid>
		<description><![CDATA[Heatmap，已经有网站提供此类服务，如：clickdensity，clicktale，crazyegg等等，甚至还有类似clickheat项目提供源代码供你直接使用。 不过最灵活的方案莫过于自己搞定，下面大概说说Heatmap的实现： 捕捉点击 当然，这需要Javascript来实现。为了不陷入浏览器兼容的泥潭，我们选择JQuery： 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 &#60;script&#62; &#160; jQuery&#40;document&#41;.ready&#40;function&#40;&#41; &#123; $&#40;document&#41;.mousedown&#40;function&#40;e&#41; &#123; if &#40;e.clientX &#38;gt;= $&#40;window&#41;.width&#40;&#41; &#124;&#124; e.clientY &#38;gt;= $&#40;window&#41;.height&#40;&#41;&#41; &#123; return; &#125; &#160; $.get&#40;&#34;/path/to/a/empty/html/file&#34;, &#123; page_x : e.pageX, page_y : e.pageY, screen_width : screen.width, screen_height: screen.height &#125;&#41;; &#125;&#41;; [...]]]></description>
		<wfw:commentRss>http://blog.prosight.me/index.php/2011/08/795/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Snow Leopard安装PHP+MySQL+Apache</title>
		<link>http://blog.prosight.me/index.php/2009/09/385?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=snow-leopard%25e5%25ae%2589%25e8%25a3%2585phpmysqlapache</link>
		<comments>http://blog.prosight.me/index.php/2009/09/385#comments</comments>
		<pubDate>Wed, 30 Sep 2009 14:53:27 +0000</pubDate>
		<dc:creator>Elton</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[snow leopard]]></category>

		<guid isPermaLink="false">http://blog.prosight.me/?p=385</guid>
		<description><![CDATA[其实Snow Leopard已经内置了apache 2.2.11和php 5.3.0，只是默认都没有打开。 感谢网友Jerry的提醒，如果没有安装过XCode的朋友，在执行下面这些步骤之前，请先安装XCode，XCode在Snow Leopard的光盘里面自带了，你也可以去Apple官方网站，注册一个帐号去下载最新版本的。 1. 启用Apache 进入系统偏好->共享，勾选web共享后即可开启Apache 2. 配置PHP 1 sudo vim /etc/apache2/httpd.conf 在 1 #LoadModule php5_module libexec/apache2/libphp5.so 把前面的#去掉。 1 sudo cp /etc/php.ini.default /etc/php.ini 3. 安装MySQL 从MySQL网站下载最新的MySQL的dmg，按照普通程序安装即可。 1 sudo vim /etc/php.ini 将mysql.default_socket的值改为：“/tmp/mysql.sock” 将mysql.default_port的值改为：3306 重启Apache 1 sudo apachectl restart 4.测试 在/Library/WebServer/Documents下面建立一个test.php，里面写入： 1 2 3 &#60;?php phpinfo&#40;&#41;; ?&#62; 然后访问http://localhost/test.php，可以看到mysql都已经配置好了。 5.增加mcrypt扩展支持 先下载，libmcrypt，然后在终端定位到目录里面 再在终端输入： 1 2 3 [...]]]></description>
		<wfw:commentRss>http://blog.prosight.me/index.php/2009/09/385/feed</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>升级内核后spawn-fcgi无法启动</title>
		<link>http://blog.prosight.me/index.php/2009/09/368?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e5%258d%2587%25e7%25ba%25a7%25e5%2586%2585%25e6%25a0%25b8%25e5%2590%258espawn-fcgi%25e6%2597%25a0%25e6%25b3%2595%25e5%2590%25af%25e5%258a%25a8</link>
		<comments>http://blog.prosight.me/index.php/2009/09/368#comments</comments>
		<pubDate>Thu, 17 Sep 2009 13:56:01 +0000</pubDate>
		<dc:creator>Elton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[fastcgi]]></category>

		<guid isPermaLink="false">http://blog.prosight.me/?p=368</guid>
		<description><![CDATA[今天升级Linux内核到2.6.30-r5。但是升级重启后，发现blog打不开了。Nginx报502的Gateway错误。 第一反应就是起到php解析作用的spawn-fcgi没有启动起来。于是尝试再次手动启动。 但是发现怎么也启动不起来。 开始以为是因为升级内核引起的，于是退回以前的内核版本，结果一样。始终无法启动spawn-fcgi的fastcgi服务。说明不是内核的问题。 检查Nginx日志和系统日志都没有什么有价值的信息。 在一筹莫展的时候，突然注意到启动spawn-fcgi的命令中包含了php-cgi这个命令。 会不会是php的问题呢。 后来手工直接执行，发现确实php有问题。 重新使用emerge -av php编译安装php后，终于可以启动spawn-fcgi了。 网站也一切正常了。 出现问题的原因应该是以前使用emerge升级过系统，部分升级影响了php所需要调用的文件，当时没有重新启动，升级后的影响没有马上生效。 这次升级内核重启后，那些升级都生效了，结果问题就暴露出来了。 以后出现问题还是不要着急，任何环节都有可能出现问题。 而且有时候可能被问题的表象所蒙蔽，比如这次升级就误认为是因为内核的问题，但是其实后来证明根本跟内核没有关系。 出现问题还是要不放过任何可能出现问题的地方，即使你觉得不可能出现问题的地方也要去测试一下，逐一排查，最终肯定可以找到问题的原因的。 Gentoo下安装PHP和Nginx请参考之前发表的帖子]]></description>
		<wfw:commentRss>http://blog.prosight.me/index.php/2009/09/368/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gentoo下安装Nginx+php</title>
		<link>http://blog.prosight.me/index.php/2009/07/250?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=gentoo%25e4%25b8%258b%25e5%25ae%2589%25e8%25a3%2585nginxphp</link>
		<comments>http://blog.prosight.me/index.php/2009/07/250#comments</comments>
		<pubDate>Sun, 19 Jul 2009 11:15:50 +0000</pubDate>
		<dc:creator>Elton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.prosight.me/?p=250</guid>
		<description><![CDATA[使用nginx(engin x)和spawn-fcgi来共同支持php 安装nginx 1 emerge -av nginx 安装spawn-fcgi 1 emerge -av spawn-fcgi 启动spawn-fcgi 1 spawn-fcgi -a 127.0.0.1 -p 9000 -f /usr/bin/php-cgi -C 10 a 表示绑定的ip地址 p 表示端口号 f 表示fcgi的应用程序，在这里是制定php的cgi版本的程序 C 表示spawn的child的个数 执行netstat检查spwan-fcgi是否正常启动，可以看到9000端口是否已经开始监听 1 netstat -tnpl 配置nginx 编辑nginx.conf文件 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 [...]]]></description>
		<wfw:commentRss>http://blog.prosight.me/index.php/2009/07/250/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS环境中lighttpd+php+fastcgi+eAccelerator安装配置</title>
		<link>http://blog.prosight.me/index.php/2009/06/97?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=centos%25e7%258e%25af%25e5%25a2%2583%25e4%25b8%25adlighttpdphpfastcgieaccelerator%25e5%25ae%2589%25e8%25a3%2585%25e9%2585%258d%25e7%25bd%25ae</link>
		<comments>http://blog.prosight.me/index.php/2009/06/97#comments</comments>
		<pubDate>Sun, 21 Jun 2009 02:44:39 +0000</pubDate>
		<dc:creator>Elton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[eaccelerator]]></category>
		<category><![CDATA[fastcgi]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://www.prosight.me/blog/?p=97</guid>
		<description><![CDATA[在CentOS下，配置一套用lighttp作为web server的php环境]]></description>
		<wfw:commentRss>http://blog.prosight.me/index.php/2009/06/97/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

