<?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://huashui.org/tag/php/feed" rel="self" type="application/rss+xml" />
	<link>http://huashui.org</link>
	<description>总是到下雨才想到雨伞，总是到拿雨伞时才发现不见了。</description>
	<lastBuildDate>Thu, 29 Jul 2010 09:53:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>常用的PHP系统在nginx下的伪静态规则</title>
		<link>http://huashui.org/post/nginx-rewrite-in-common-systems.html</link>
		<comments>http://huashui.org/post/nginx-rewrite-in-common-systems.html#comments</comments>
		<pubDate>Thu, 25 Feb 2010 08:17:43 +0000</pubDate>
		<dc:creator>Huashui</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[伪静态]]></category>

		<guid isPermaLink="false">http://huashui.org/?p=307</guid>
		<description><![CDATA[常用的系统在nginx下的伪静态规则。 CMS系统 PHPCMS： location / { ###以下为PHPCMS 伪静态化rewrite规则 rewrite ^(.*)show-([0-9]+)-([0-9]+)\.html$ $1/show.php?itemid=$2&#38;page=$3; rewrite ^(.*)list-([0-9]+)-([0-9]+)\.html$ $1/list.php?catid=$2&#38;page=$3; rewrite ^(.*)show-([0-9]+)\.html$ $1/show.php?specialid=$2; } 商城shopex &#160; location / { if (!-e $request_filename) { rewrite ^/(.+\.(html&#124;xml&#124;json&#124;htm&#124;php&#124;jsp&#124;asp&#124;shtml))$ /index.php?$1 last; } } ECSHOP if (!-e $request_filename) { rewrite “^/index\.html” /index.php last; rewrite “^/category$” /index.php last; rewrite “^/feed-c([0-9]+)\.xml$” /feed.php?cat=$1 last; rewrite “^/feed-b([0-9]+)\.xml$” /feed.php?brand=$1 last; rewrite [...]]]></description>
		<wfw:commentRss>http://huashui.org/post/nginx-rewrite-in-common-systems.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在windows上安装nginx+php环境</title>
		<link>http://huashui.org/post/windows-nginx-php.html</link>
		<comments>http://huashui.org/post/windows-nginx-php.html#comments</comments>
		<pubDate>Sat, 20 Feb 2010 13:13:46 +0000</pubDate>
		<dc:creator>Huashui</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Nginx]]></category>

		<guid isPermaLink="false">http://huashui.org/?p=288</guid>
		<description><![CDATA[目前，nginx以其独特的性能越来越博得喜爱，LNMP环境逐步代替了LAMP环境。Nginx从v0.7.52也开始支持windows环境。接下来简要介绍些安装方法。 1、准备好安装软件 Nginx ：我们选用最新的稳定版本0.7.65。http://nginx.org/download/nginx-0.7.65.zip PHP:http://www.php.net/get/php-5.2.12-Win32.zip/from/a/mirror RunHiddenConsole：用来隐藏dos窗口。http://blogbuildingu.com/files/RunHiddenConsole.zip 2、创建安装目录 在c盘创建php5和Nginx文件夹。 3、安装Nginx 将nginx解压出来，将里面的文件拷贝到Nginx文件夹里面。 4、安装PHP 将php的文件解压出来，全部拷贝到php5文件夹里面。把RunHiddenConsole.exe 也拷贝进来。 5、配置 （1）打开php5文件夹，找到的 php.ini-recommended，更名为 php.ini，打开，推荐用EditPlus打开： 找到; cgi.fix_pathinfo=1，去掉前面的; 找到 ;extension=php_gd2.dll ;extension=php_mysql.dll ;extension=php_mysqli.dll 把前面的;去掉，这样就能支持gd图形、mysql数据库连接，如果需要其他的扩展功能，可以去掉对应的;即可 （2）将C:\php5加到path里面。 （3）找到nginx文件夹下的conf，双击进入该文件夹， 找到nginx.conf文件， #location ~ \.php$ { # root html; # fastcgi_pass 127.0.0.1:9000; # fastcgi_index index.php; # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; # include fastcgi_params; #} 把里面的#去掉。并将/scripts替换为 $document_root 其中root可以随意指定你所要的目录，特别要注意和 location / { root [...]]]></description>
		<wfw:commentRss>http://huashui.org/post/windows-nginx-php.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP获取客户端IP的几种方法</title>
		<link>http://huashui.org/post/php-get-client-ip.html</link>
		<comments>http://huashui.org/post/php-get-client-ip.html#comments</comments>
		<pubDate>Mon, 08 Feb 2010 05:38:56 +0000</pubDate>
		<dc:creator>Huashui</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[IP]]></category>

		<guid isPermaLink="false">http://huashui.org/?p=252</guid>
		<description><![CDATA[PHP获取客户端IP有几个函数，下面介绍下三种常用的写法。 第一种： &#60;?php function GetIP&#40;&#41; &#123; //获取IP if &#40;$_SERVER&#91;&#34;HTTP_X_FORWARDED_FOR&#34;&#93;&#41; $ip = $_SERVER&#91;&#34;HTTP_X_FORWARDED_FOR&#34;&#93;; else if &#40;$_SERVER&#91;&#34;HTTP_CLIENT_IP&#34;&#93;&#41; $ip = $_SERVER&#91;&#34;HTTP_CLIENT_IP&#34;&#93;; else if &#40;$_SERVER&#91;&#34;REMOTE_ADDR&#34;&#93;&#41; $ip = $_SERVER&#91;&#34;REMOTE_ADDR&#34;&#93;; else if &#40;getenv&#40;&#34;HTTP_X_FORWARDED_FOR&#34;&#41;&#41; $ip = getenv&#40;&#34;HTTP_X_FORWARDED_FOR&#34;&#41;; else if &#40;getenv&#40;&#34;HTTP_CLIENT_IP&#34;&#41;&#41; $ip = getenv&#40;&#34;HTTP_CLIENT_IP&#34;&#41;; else if &#40;getenv&#40;&#34;REMOTE_ADDR&#34;&#41;&#41; $ip = getenv&#40;&#34;REMOTE_ADDR&#34;&#41;; else $ip = &#34;Unknown&#34;; return $ip; &#125; ?&#62; 第二种： function getip&#40;&#41; &#123; if [...]]]></description>
		<wfw:commentRss>http://huashui.org/post/php-get-client-ip.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用PHPRpc实现Java和PHP通信</title>
		<link>http://huashui.org/post/phprpc-java-php.html</link>
		<comments>http://huashui.org/post/phprpc-java-php.html#comments</comments>
		<pubDate>Sun, 07 Feb 2010 05:07:52 +0000</pubDate>
		<dc:creator>Huashui</dc:creator>
				<category><![CDATA[JAVA]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHPRpc]]></category>

		<guid isPermaLink="false">http://huashui.org/?p=237</guid>
		<description><![CDATA[PHPRPC是一款不错的是轻型的、安全的、跨网际的、跨语言的、跨平台的、跨环境的、跨域的、支持复杂对象传输的、支持引用参数传递的、支持内容输出重定向的、支持分级错误处理的、支持会话的、面向服务的高性能远程过程调用协议。官方网址为http://www.phprpc.org/zh_CN/ 本文以Java作为服务器端，PHP作为客户端来作为演示。 1、先书写Java服务器端，书写一个接口。如下： package org.huashui.server; &#160; public interface UserManager &#123; //增加一个用户名 public void add&#40;String name&#41;; //获取用户名 public String getName&#40;&#41;; //长数据测试 public String getLongString&#40;&#41;; //长数据测试2 public byte&#91;&#93; getLongByte&#40;&#41;; &#160; &#125; 书写实现类 package org.huashui.server.impl; &#160; import org.huashui.server.UserManager; &#160; public class UserManagerImpl implements UserManager &#123; &#160; private String name; &#160; public void add&#40;String name&#41; &#123; this.name = name; [...]]]></description>
		<wfw:commentRss>http://huashui.org/post/phprpc-java-php.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows 下环境迅速搭建Php+Apache+mysql</title>
		<link>http://huashui.org/post/vertrigoserv0717.html</link>
		<comments>http://huashui.org/post/vertrigoserv0717.html#comments</comments>
		<pubDate>Fri, 18 Jul 2008 14:27:59 +0000</pubDate>
		<dc:creator>Huashui</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Vertirgo]]></category>

		<guid isPermaLink="false">http://localhost/post/vertrigoserv0717-html.html</guid>
		<description><![CDATA[VertrigoServ是一款傻瓜式的集Apache, PHP, MySQL, SQLite, SQLiteManager, PhpMyAdmin, Zend Optimizer， Smarty的服务器软件。可以调试php的程序。特别适合新手使用，本文介绍它的使用方法。]]></description>
		<wfw:commentRss>http://huashui.org/post/vertrigoserv0717.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
