<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:media="http://search.yahoo.com/mrss/"
	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>PHP - 四号程序员</title>
	<atom:link href="https://www.coder4.com/archives/category/php/feed" rel="self" type="application/rss+xml" />
	<link>https://www.coder4.com</link>
	<description>Keep It Simple and Stupid</description>
	<lastBuildDate>Tue, 17 Feb 2015 08:23:42 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>PHP如何从服务器端判断客户端的代理类型。</title>
		<link>https://www.coder4.com/archives/4437</link>
					<comments>https://www.coder4.com/archives/4437#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Tue, 17 Feb 2015 08:23:42 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[代理]]></category>
		<category><![CDATA[类型]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=4437</guid>

					<description><![CDATA[我们假设客户端确实用了代理服务器，则PHP版的写法是： &#60;?php $ra = $_SERVER["REMOTE_ADDR"]; $hv = $_SERVER["HTTP_VIA"]; $fwd = $_SERVER["HTTP_X_FORWARDED_FOR"]; /* fwd = ""; if($_SERVER['HTTP_X_FORWARDED_FOR']) $fwd = $_SERVER['HTTP_X_FORWARDED_FOR']; els[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/4437/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>通过PHP备份MySQL、网站到邮箱</title>
		<link>https://www.coder4.com/archives/2603</link>
					<comments>https://www.coder4.com/archives/2603#comments</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Mon, 31 Oct 2011 15:24:21 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[备份]]></category>
		<category><![CDATA[邮箱]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=2603</guid>

					<description><![CDATA[#!/usr/local/bin/php.cli &#60;?php require_once './lib/swift_required.php'; //MySQL $mysql_dbname = "db"; $mysql_user = "user"; $mysql_pass = "pass"; $mysql_file = "./xxx.sql"; $mysql_charset = "utf8"; system("mysqldump --default-character-[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/2603/feed</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>通过PHP发送邮件(带附件、HTML等)</title>
		<link>https://www.coder4.com/archives/2599</link>
					<comments>https://www.coder4.com/archives/2599#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Mon, 31 Oct 2011 14:08:19 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[E-Mail]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[SwiftMail]]></category>
		<category><![CDATA[发邮件]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=2599</guid>

					<description><![CDATA[用PHP发邮件，可以走sendmail，但是MIME方面，如果用内置的，非常麻烦。 我使用了SwiftMail 有兴趣的可以看看他们的文档，支持SMTP、Sendmail，对MIME的支持也很简单很强大，支持附件、html等。 一个例子： &#60;?php require_once './lib/swift_required.php'; //E-Mail $mail_title = "I'm Subject"; $mail_content = "I'm Conte[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/2599/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Ubuntu 10.10上编译安装LNMP：Nginx 0.8.54+MySQL 5.1.56+PHP-FPM 5.3.6</title>
		<link>https://www.coder4.com/archives/1408</link>
					<comments>https://www.coder4.com/archives/1408#comments</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Fri, 01 Apr 2011 14:46:21 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[数据库技术]]></category>
		<category><![CDATA[0.8.54]]></category>
		<category><![CDATA[5.1.56]]></category>
		<category><![CDATA[5.3.6]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[php-fpm]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[优化]]></category>
		<category><![CDATA[安装]]></category>
		<category><![CDATA[教程]]></category>
		<category><![CDATA[编译]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=1408</guid>

					<description><![CDATA[本文记录了LNMP在Ubuntu10.10下的编译安装过程，版本如下： Nginx 0.8.54 MySQL 5.1.56 PHP-FPM 5.3.6 1、编译安装MySQL 5.1.56 #下载 wget http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.56.tar.gz/from/http://mysql.he.net/ mv index.html mysql-5.1.56.tar.gz tar -xzvf m[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/1408/feed</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>PHP配置APC</title>
		<link>https://www.coder4.com/archives/1108</link>
					<comments>https://www.coder4.com/archives/1108#comments</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Sun, 31 Oct 2010 07:54:52 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[APC]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=1108</guid>

					<description><![CDATA[APC是一个很好的PHP加速器，比起Xcache来说，速度略逊，但是省内存！ [shell] #下载、编译 wget http://pecl.php.net/get/APC-3.1.4.tgz tar -xzvf APC-3.1.4.tgz cd APC-3.1.4 ./configure --enable-apc --enable-apc-mmap --with-php-config=/usr/local/php/bin/php-config #安装、设置 [/shel[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/1108/feed</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>解决PHP中long2ip反序的问题</title>
		<link>https://www.coder4.com/archives/550</link>
					<comments>https://www.coder4.com/archives/550#comments</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Wed, 10 Mar 2010 06:12:21 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[big-endian]]></category>
		<category><![CDATA[little-endian]]></category>
		<category><![CDATA[long2ip]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=550</guid>

					<description><![CDATA[原因是：php中没有考虑主机序和网络序的转换，导致主机序为little-endian的机器上，long2ip()得到的IP反了。 下面是解决办法，我们自己判断little-endian和big-endian： [php] function long2ip_fix($ip_32) { $ip = long2ip($ip_32); //先判断是big-endian还是little-endian $foo = 0x3456789a; switch (pack ('L', $foo)) {[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/550/feed</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>PHP中让人郁闷的long2ip和ip2long</title>
		<link>https://www.coder4.com/archives/547</link>
					<comments>https://www.coder4.com/archives/547#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Wed, 10 Mar 2010 03:55:40 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[ip2long]]></category>
		<category><![CDATA[long2ip]]></category>
		<category><![CDATA[反向]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=547</guid>

					<description><![CDATA[一般情况下，这两个函数是没法正常工作的：并不能正确完成ip和uint_32的互相转换。 解决办法： bindec(decbin(ip2long( &#39;218.22.80.170 &#39;))) long2ip正在寻找中。。。 目前的办法是，手动反向 &#160; function direction_fix($ip) { //将读取的little-endian编码的4个字节转化为长整型数 $tmp = split(&#34;\.&#34;,$ip); return $tmp[3].&#038;[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/547/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>php多目录嵌套include的解决方法</title>
		<link>https://www.coder4.com/archives/546</link>
					<comments>https://www.coder4.com/archives/546#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Tue, 02 Mar 2010 07:38:40 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[include]]></category>
		<category><![CDATA[嵌套]]></category>
		<category><![CDATA[目录]]></category>
		<guid isPermaLink="false">http://www.coder4.com/archives/546</guid>

					<description><![CDATA[在网上看到别人这么做： localhost\主目录\include\xxx.php中define一个主目录的绝对路径 //****目录的绝对路径****/ if ( !defined(&#8216;ROOT_PATH&#8217;) ) { define(&#8220;ROOT_PATH&#8221;, substr(dirname(__FILE__), 0, -7) ); } 其中这个-7就是include的长度，也就是到ROOT的所有子目录字节数，虽然可能每个文件都要加，但是可以[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/546/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>转：ubuntu下lighttpd+php5的配置</title>
		<link>https://www.coder4.com/archives/343</link>
					<comments>https://www.coder4.com/archives/343#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Sun, 14 Feb 2010 12:37:41 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Lighttpd]]></category>
		<category><![CDATA[MySQL]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=343</guid>

					<description><![CDATA[&#160; 原文地址：http://liuqingyan.blogspot.com/2009/01/ubuntu-810lighttpdphp.html sudo apt-get install lighttpd php5-cgi php5-mysql sudo lighty-enable-mod fastcgi sudo /etc/init.d/lighttpd force-reload 编辑/var/www/index.php &#60;?php php_info(); ?&#038;[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/343/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>PHP+MYSQL 两行Query搞定删除重复数据</title>
		<link>https://www.coder4.com/archives/76</link>
					<comments>https://www.coder4.com/archives/76#comments</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Thu, 26 Nov 2009 08:24:00 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[数据库技术]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[删除重复记录]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=76</guid>

					<description><![CDATA[$db=mysql_connect('localhost','xxx','xxx'); //text为可能存在重复的字段名，先用count子句来把TEXT重复的记录的ID拎出来，不全拎，节省资源～ mysql_select_db('vbnew'); $sql="SELECT id, text, count( text ) FROM `dic` GROUP BY text HAVING count( text ) >1"; $result=mysql_query($sql)or die("Inva[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/76/feed</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
	</channel>
</rss>
