<?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>I-JC☞用技术做网络营销 &#187; PHP</title>
	<atom:link href="http://www.i-jc.cn/index.php/Tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.i-jc.cn</link>
	<description>关注产品、RIA、教育、网络营销、口碑营销，探求教育产品+口碑营销的有效途径</description>
	<lastBuildDate>Thu, 04 Aug 2011 08:11:23 +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>[收藏]20个PHP常用类库</title>
		<link>http://www.i-jc.cn/index.php/%e6%94%b6%e8%97%8f20%e4%b8%aaphp%e5%b8%b8%e7%94%a8%e7%b1%bb%e5%ba%93-913/</link>
		<comments>http://www.i-jc.cn/index.php/%e6%94%b6%e8%97%8f20%e4%b8%aaphp%e5%b8%b8%e7%94%a8%e7%b1%bb%e5%ba%93-913/#comments</comments>
		<pubDate>Sun, 18 Apr 2010 11:33:04 +0000</pubDate>
		<dc:creator>JCLee</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.i-jc.cn/index.php/%e6%94%b6%e8%97%8f20%e4%b8%aaphp%e5%b8%b8%e7%94%a8%e7%b1%bb%e5%ba%93-913/</guid>
		<description><![CDATA[图表库 下面的类库可以让你很简的创建复杂的图表和图片。当然，它们需要GD库的支持。 pChart - 一个可以创建统计图的库。 Libchart - 这也是一个简单的统计图库。 JpGraph &#8211; 一个面向对象的图片创建类。 Open Flash Chart - 这是一个基于Flash的统计图。 RSS 解析 MagpieRSS - 开源的PHP版RSS解析器，据说功能强大，未验证。 SimplePie &#8211; 这是一个非常快速，而且易用的RSS和Atom 解析库。 缩略图生成 phpThumb - 功能很强大，如何强大还是自己去体会吧。 支付 PHP Payment Library &#8211; 支持Paypal, Authorize.net 和2Checkout (2CO) OpenID PHP-OpenID - 支持OpenID的一个PHP库。OpenID是帮助你使用相同的用户名和口令登录不同的网站的一种解决方案。如果你对OpenID不熟悉的话，你可以到这里看看：http://openid.net.cn/ 数据为抽象/对象关系映射ORM ADOdb - 数据库抽象 Doctrine - 对象关系映射Object relational mapper (ORM) ，需要 PHP 5.2.3+ [...]]]></description>
			<content:encoded><![CDATA[<p><span class="Apple-style-span" style="border-collapse: separate; color: #000000; font-family: Simsun; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span class="Apple-style-span" style="color: #333333; font-family: 宋体,Arial,Helvetica,sans-serif; font-size: 14px; line-height: 25px; text-align: left; text-indent: 28px;"> </span></span></p>
<h2 style="font-family: 宋体,Arial,Helvetica,sans-serif; margin: 0px; padding: 0px; color: #333333; font-size: 12px;">图表库</h2>
<p style="font-family: 宋体,Arial,Helvetica,sans-serif; margin: 10px 0px 0px; padding: 0px; color: #333333; font-size: 14px; line-height: 25px; text-align: left; text-indent: 2em; overflow: hidden; clear: both; word-wrap: break-word; width: 620px;">下面的类库可以让你很简的创建复杂的图表和图片。当然，它们需要GD库的支持。</p>
<ul style="font-family: 宋体,Arial,Helvetica,sans-serif; margin: 0px; padding: 0px; color: #333333; font-size: 12px; list-style-type: none;">
<li style="line-height: 25px; text-align: left; text-indent: 2em; overflow: hidden; font-size: 14px; clear: both; word-wrap: break-word; width: 620px;"><a href="http://pchart.sourceforge.net/" target="_blank"><span>pChart </span></a>- 一个可以创建统计图的库。</li>
<li style="line-height: 25px; text-align: left; text-indent: 2em; overflow: hidden; font-size: 14px; clear: both; word-wrap: break-word; width: 620px;"><a href="http://naku.dohcrew.com/libchart/pages/introduction/" target="_blank"><span>Libchart </span></a>- 这也是一个简单的统计图库。</li>
<li style="line-height: 25px; text-align: left; text-indent: 2em; overflow: hidden; font-size: 14px; clear: both; word-wrap: break-word; width: 620px;"><a href="http://www.aditus.nu/jpgraph/" target="_blank"><span>JpGraph</span></a> &#8211; 一个面向对象的图片创建类。</li>
<li style="line-height: 25px; text-align: left; text-indent: 2em; overflow: hidden; font-size: 14px; clear: both; word-wrap: break-word; width: 620px;"><a href="http://teethgrinder.co.uk/open-flash-chart/" target="_blank"><span>Open Flash Chart </span></a>- 这是一个基于Flash的统计图。</li>
</ul>
<h2 style="font-family: 宋体,Arial,Helvetica,sans-serif; margin: 0px; padding: 0px; color: #333333; font-size: 12px;">RSS 解析</h2>
<ul style="font-family: 宋体,Arial,Helvetica,sans-serif; margin: 0px; padding: 0px; color: #333333; font-size: 12px; list-style-type: none;">
<li style="line-height: 25px; text-align: left; text-indent: 2em; overflow: hidden; font-size: 14px; clear: both; word-wrap: break-word; width: 620px;"><a href="http://magpierss.sourceforge.net/" target="_blank"><span>MagpieRSS </span></a>- 开源的PHP版RSS解析器，据说功能强大，未验证。</li>
<li style="line-height: 25px; text-align: left; text-indent: 2em; overflow: hidden; font-size: 14px; clear: both; word-wrap: break-word; width: 620px;"><a href="http://simplepie.org/" target="_blank"><span>SimplePie</span></a> &#8211; 这是一个非常快速，而且易用的RSS和Atom 解析库。</li>
</ul>
<h2 style="font-family: 宋体,Arial,Helvetica,sans-serif; margin: 0px; padding: 0px; color: #333333; font-size: 12px;">缩略图生成</h2>
<ul style="font-family: 宋体,Arial,Helvetica,sans-serif; margin: 0px; padding: 0px; color: #333333; font-size: 12px; list-style-type: none;">
<li style="line-height: 25px; text-align: left; text-indent: 2em; overflow: hidden; font-size: 14px; clear: both; word-wrap: break-word; width: 620px;"><a href="http://phpthumb.sourceforge.net/" target="_blank"><span>phpThumb </span></a>- 功能很强大，如何强大还是自己去体会吧。</li>
</ul>
<h2 style="font-family: 宋体,Arial,Helvetica,sans-serif; margin: 0px; padding: 0px; color: #333333; font-size: 12px;">支付</h2>
<ul style="font-family: 宋体,Arial,Helvetica,sans-serif; margin: 0px; padding: 0px; color: #333333; font-size: 12px; list-style-type: none;">
<li style="line-height: 25px; text-align: left; text-indent: 2em; overflow: hidden; font-size: 14px; clear: both; word-wrap: break-word; width: 620px;"><a href="http://www.phpfour.com/blog/2009/02/php-payment-gateway-library-for-paypal-authorizenet-and-2checkout/" target="_blank"><span>PHP Payment Library</span></a> &#8211; 支持Paypal, Authorize.net 和2Checkout (2CO)</li>
</ul>
<h2 style="font-family: 宋体,Arial,Helvetica,sans-serif; margin: 0px; padding: 0px; color: #333333; font-size: 12px;">OpenID</h2>
<ul style="font-family: 宋体,Arial,Helvetica,sans-serif; margin: 0px; padding: 0px; color: #333333; font-size: 12px; list-style-type: none;">
<li style="line-height: 25px; text-align: left; text-indent: 2em; overflow: hidden; font-size: 14px; clear: both; word-wrap: break-word; width: 620px;"><a href="http://www.openidenabled.com/php-openid" target="_blank"><span>PHP-OpenID </span></a>- 支持OpenID的一个PHP库。OpenID是帮助你使用相同的用户名和口令登录不同的网站的一种解决方案。如果你对OpenID不熟悉的话，你可以到这里看看：<a href="http://openid.net.cn/"><span>http://openid.net.cn/</span></a></li>
</ul>
<h2 style="font-family: 宋体,Arial,Helvetica,sans-serif; margin: 0px; padding: 0px; color: #333333; font-size: 12px;">数据为抽象/对象关系映射ORM</h2>
<ul style="font-family: 宋体,Arial,Helvetica,sans-serif; margin: 0px; padding: 0px; color: #333333; font-size: 12px; list-style-type: none;">
<li style="line-height: 25px; text-align: left; text-indent: 2em; overflow: hidden; font-size: 14px; clear: both; word-wrap: break-word; width: 620px;"><a href="http://adodb.sourceforge.net/" target="_blank"><span>ADOdb </span></a>- 数据库抽象</li>
<li style="line-height: 25px; text-align: left; text-indent: 2em; overflow: hidden; font-size: 14px; clear: both; word-wrap: break-word; width: 620px;"><a href="http://www.doctrine-project.org/" target="_blank"><span>Doctrine </span></a>- 对象关系映射Object relational mapper (ORM) ，需要 PHP 5.2.3+ 版本，一个非常强大的database abstraction layer (DBAL).</li>
<li style="line-height: 25px; text-align: left; text-indent: 2em; overflow: hidden; font-size: 14px; clear: both; word-wrap: break-word; width: 620px;"><a href="http://propel.phpdb.org/trac/" target="_blank"><span>Propel</span></a> &#8211; 对象关系映射框架- PHP5</li>
<li style="line-height: 25px; text-align: left; text-indent: 2em; overflow: hidden; font-size: 14px; clear: both; word-wrap: break-word; width: 620px;"><a href="http://www.outlet-orm.org/site/" target="_blank"><span>Outlet </span></a>- 也是关于对象关系映射的一个工具。</li>
</ul>
<blockquote style="font-family: 宋体,Arial,Helvetica,sans-serif; margin: 0px; padding: 0px; color: #333333; font-size: 12px;">
<p style="font-family: 宋体,Arial,Helvetica,sans-serif; margin: 10px 0px 0px; padding: 0px; color: #333333; font-size: 14px; line-height: 25px; text-align: left; text-indent: 2em; overflow: hidden; clear: both; word-wrap: break-word; width: 620px;">注：对象关系映射（Object Relational Mapping，简称ORM）是一种为了解决面向对象与关系数据库存在的互不匹配的现象的技术。 简单的说，ORM是通过使用描述对象和数据库之间映射的元数据，将程序中的对象自动持久化到关系数据库中。本质上就是将数据从一种形式转换到另外一种形 式。 这也同时暗示者额外的执行开销；然而，如果ORM作为一种中间件实现，则会有很多机会做优化，而这些在手写的持久层并不存在。 更重要的是用于控制转换的元数据需要提供和管理；但是同样，这些花费要比维护手写的方案要少；而且就算是遵守ODMG规范的对象数据库依然需要类级别的元 数据。</p>
</blockquote>
<h2 style="font-family: 宋体,Arial,Helvetica,sans-serif; margin: 0px; padding: 0px; color: #333333; font-size: 12px;">PDF 生成器</h2>
<ul style="font-family: 宋体,Arial,Helvetica,sans-serif; margin: 0px; padding: 0px; color: #333333; font-size: 12px; list-style-type: none;">
<li style="line-height: 25px; text-align: left; text-indent: 2em; overflow: hidden; font-size: 14px; clear: both; word-wrap: break-word; width: 620px;"><a href="http://www.fpdf.org/" target="_blank"><span>FPDF</span></a> &#8211; 这量一个可以让你生成PDF的纯PHP类库。</li>
</ul>
<h2 style="font-family: 宋体,Arial,Helvetica,sans-serif; margin: 0px; padding: 0px; color: #333333; font-size: 12px;">Excel 相关</h2>
<ul style="font-family: 宋体,Arial,Helvetica,sans-serif; margin: 0px; padding: 0px; color: #333333; font-size: 12px; list-style-type: none;">
<li style="line-height: 25px; text-align: left; text-indent: 2em; overflow: hidden; font-size: 14px; clear: both; word-wrap: break-word; width: 620px;"><a href="http://code.google.com/p/php-excel/" target="_blank"><span>php-excel</span></a> &#8211; 这是一个非常简单的Excel文件生成类。</li>
<li style="line-height: 25px; text-align: left; text-indent: 2em; overflow: hidden; font-size: 14px; clear: both; word-wrap: break-word; width: 620px;"><a href="http://code.google.com/p/php-excel-reader/" target="_blank"><span>PHP Excel Reader</span></a> &#8211; 可以解析并读取XLS文件中的数据。</li>
</ul>
<h2 style="font-family: 宋体,Arial,Helvetica,sans-serif; margin: 0px; padding: 0px; color: #333333; font-size: 12px;">E-Mail 相关</h2>
<ul style="font-family: 宋体,Arial,Helvetica,sans-serif; margin: 0px; padding: 0px; color: #333333; font-size: 12px; list-style-type: none;">
<li style="line-height: 25px; text-align: left; text-indent: 2em; overflow: hidden; font-size: 14px; clear: both; word-wrap: break-word; width: 620px;"><a href="http://swiftmailer.org/" target="_blank"><span>Swift Mailer</span></a> &#8211; 免费的超多功能的PHP邮件库。</li>
<li style="line-height: 25px; text-align: left; text-indent: 2em; overflow: hidden; font-size: 14px; clear: both; word-wrap: break-word; width: 620px;"><a href="http://phpmailer.codeworxtech.com/" target="_blank"><span>PHPMailer</span></a> &#8211; 超强大的邮件发送类。</li>
</ul>
<h2 style="font-family: 宋体,Arial,Helvetica,sans-serif; margin: 0px; padding: 0px; color: #333333; font-size: 12px;">单元测试</h2>
<p style="font-family: 宋体,Arial,Helvetica,sans-serif; margin: 10px 0px 0px; padding: 0px; color: #333333; font-size: 14px; line-height: 25px; text-align: left; text-indent: 2em; overflow: hidden; clear: both; word-wrap: break-word; width: 620px;">如果你在使用测试驱动的方法开发你的程序，下面的类库和框架绝你能帮助你的开发。</p>
<ul style="font-family: 宋体,Arial,Helvetica,sans-serif; margin: 0px; padding: 0px; color: #333333; font-size: 12px; list-style-type: none;">
<li style="line-height: 25px; text-align: left; text-indent: 2em; overflow: hidden; font-size: 14px; clear: both; word-wrap: break-word; width: 620px;"><a href="http://www.simpletest.org/" target="_blank"><span>SimpleTest </span></a>- 一个PHP的单元测试和网页测试的框架。</li>
<li style="line-height: 25px; text-align: left; text-indent: 2em; overflow: hidden; font-size: 14px; clear: both; word-wrap: break-word; width: 620px;"><a href="http://www.phpunit.de/" target="_blank"><span>PHPUnit</span></a> &#8211; 来自xUnit 家族，提供一个框架可以让你方便地进行单元测试的案例开发。并可非常容易地分析其测试结果。</li>
</ul>
<h3 class='related_post_title'>猜测您可以感兴趣的内容:</h3>
<ul class='related_post'>
<li><a href='http://www.i-jc.cn/index.php/php-sourceguardian-557/' title='PHP保护、加密的工具-SourceGuardian'>PHP保护、加密的工具-SourceGuardian</a></li>
<li><a href='http://www.i-jc.cn/index.php/windows-php-liunx-151/' title='Windows下开发的PHP项目转移到Liunx下几点总结'>Windows下开发的PHP项目转移到Liunx下几点总结</a></li>
<li><a href='http://www.i-jc.cn/index.php/php5-apache22-23/' title='[修改错误版]PHP5+APACHE2.2配置成功案例'>[修改错误版]PHP5+APACHE2.2配置成功案例</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.i-jc.cn/index.php/%e6%94%b6%e8%97%8f20%e4%b8%aaphp%e5%b8%b8%e7%94%a8%e7%b1%bb%e5%ba%93-913/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>PHP保护、加密的工具-SourceGuardian</title>
		<link>http://www.i-jc.cn/index.php/php-sourceguardian-557/</link>
		<comments>http://www.i-jc.cn/index.php/php-sourceguardian-557/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 04:15:01 +0000</pubDate>
		<dc:creator>JCLee</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SourceGuardian]]></category>
		<category><![CDATA[加密]]></category>

		<guid isPermaLink="false">http://www.i-jc.cn/index.php/php%e4%bf%9d%e6%8a%a4%e3%80%81%e5%8a%a0%e5%af%86%e7%9a%84%e5%b7%a5%e5%85%b7-sourceguardian-557/</guid>
		<description><![CDATA[PHP现在比较熟悉的保护及加密是Zend Guard。康盛之前的一些保护及加密都是用的此方法。 不过，现在此方法的保护直接有破解工具。已经完全不安全了。 另，对于一些企业版的产品，Zend Guard的加密方法也完全不满足需求。 网上搜索了半天，终于找到国外一款比较好的软件【SourceGuardian】。可以解决这些问题。可以让PHP也达到企业级的应用。 • Set expiration date（设置过期时间） • Lock to IP addresses（锁定IP地址） • Lock to domain names with wildcards（通过通配符锁定域名） • Lock to hardware MAC addresses（锁定硬件的MAC地址） • Restrict protected scripts to work with unencoded scripts（保护脚本安全，让脚本加密的情况下运行） • Lock to external license file which will be required to run protected scripts（可通过外部许个证来锁定保护） • Set custom constants [...]]]></description>
			<content:encoded><![CDATA[<p>PHP现在比较熟悉的保护及加密是Zend Guard。康盛之前的一些保护及加密都是用的此方法。<br />
不过，现在此方法的保护直接有破解工具。已经完全不安全了。</p>
<p>另，对于一些企业版的产品，Zend Guard的加密方法也完全不满足需求。<br />
网上搜索了半天，终于找到国外一款比较好的软件【<a href="http://sourceguardian.com" target="_blank">SourceGuardian</a>】。可以解决这些问题。可以让PHP也达到企业级的应用。</p>
<blockquote><p><span class="bodytext">•	Set expiration date</span>（设置过期时间）<br />
<span class="bodytext"> •	Lock to IP addresses</span>（锁定IP地址）<br />
<span class="bodytext"> •	Lock to domain names with wildcards</span>（通过通配符锁定域名）<br />
<span class="bodytext"> •	Lock to hardware MAC addresses</span>（锁定硬件的MAC地址）<br />
<span class="bodytext"> •	Restrict protected scripts to work with unencoded scripts</span>（保护脚本安全，让脚本加密的情况下运行）<br />
<span class="bodytext"> •	Lock to external license file which will be required to run protected scripts</span>（可通过外部许个证来锁定保护）<br />
<span class="bodytext"> •	Set custom constants which will be written into encoded script and will be available from the protected code</span>（可以设定常量保护代码）</p></blockquote>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=72851886-fb98-8cb0-a490-f73261655dd8" alt="" /></div>
<p><img class="alignnone size-full wp-image-561" title="settings_win1" src="http://www.i-jc.cn/wp-content/uploads/2009/10/settings_win1.gif" alt="settings_win1" width="587" height="438" /><br />
<h3 class='related_post_title'>猜测您可以感兴趣的内容:</h3>
<ul class='related_post'>
<li><a href='http://www.i-jc.cn/index.php/%e6%94%b6%e8%97%8f20%e4%b8%aaphp%e5%b8%b8%e7%94%a8%e7%b1%bb%e5%ba%93-913/' title='[收藏]20个PHP常用类库'>[收藏]20个PHP常用类库</a></li>
<li><a href='http://www.i-jc.cn/index.php/windows-php-liunx-151/' title='Windows下开发的PHP项目转移到Liunx下几点总结'>Windows下开发的PHP项目转移到Liunx下几点总结</a></li>
<li><a href='http://www.i-jc.cn/index.php/php5-apache22-23/' title='[修改错误版]PHP5+APACHE2.2配置成功案例'>[修改错误版]PHP5+APACHE2.2配置成功案例</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.i-jc.cn/index.php/php-sourceguardian-557/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Windows下开发的PHP项目转移到Liunx下几点总结</title>
		<link>http://www.i-jc.cn/index.php/windows-php-liunx-151/</link>
		<comments>http://www.i-jc.cn/index.php/windows-php-liunx-151/#comments</comments>
		<pubDate>Sat, 06 Sep 2008 16:11:49 +0000</pubDate>
		<dc:creator>JCLee</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Liunx]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.i-jc.cn/index.php/windows%e4%b8%8b%e5%bc%80%e5%8f%91%e7%9a%84php%e9%a1%b9%e7%9b%ae%e8%bd%ac%e7%a7%bb%e5%88%b0liunx%e4%b8%8b%e5%87%a0%e7%82%b9%e6%80%bb%e7%bb%93-151/</guid>
		<description><![CDATA[最近在做PHP项目，由于开发环境是Windows，实际运行环境为Linux。 从开发的Windows转移到Linux，发生很多的错误。 现总结如下： 1.大小写问题。Linux区分大小写。所以Windows开发的时候，大小写一定要准确。DW建立项目的时候，可以将“区分大小写”的选项选中。 2.目录及文件权限。Linux权限很严格，Windows开发却基本不用考虑目录及文件权限，转移到Linux下，需要考虑到各文件及目录的权限，进行设置。 3.PHP文件需以二进制上传。实践过多次，PHP文件，如果以文本形式上传很容易出问题。另像很多用Zend加密的PHP文件，就必须以二进制上传，才可以正常运行。 4.PHP项目所产生的缓存文件最好删除。Windows下开发中所产生的缓存文件，最好在上传Liunx之前，先删除。否则容易产生问题。 以上是这几天的项目经验，后面如有增加，会不断补充。 猜测您可以感兴趣的内容: [收藏]20个PHP常用类库 PHP保护、加密的工具-SourceGuardian [修改错误版]PHP5+APACHE2.2配置成功案例]]></description>
			<content:encoded><![CDATA[<p>最近在做PHP项目，由于开发环境是Windows，实际运行环境为Linux。<br />
 从开发的Windows转移到Linux，发生很多的错误。<br />
 现总结如下：<br />
 1.<strong>大小写问题</strong>。Linux区分大小写。所以Windows开发的时候，大小写一定要准确。DW建立项目的时候，可以将“区分大小写”的选项选中。</p>
<p>2.<strong>目录及文件权限。</strong>Linux权限很严格，Windows开发却基本不用考虑目录及文件权限，转移到Linux下，需要考虑到各文件及目录的权限，进行设置。</p>
<p>3.<strong>PHP文件需以二进制上传。</strong>实践过多次，PHP文件，如果以文本形式上传很容易出问题。另像很多用Zend加密的PHP文件，就必须以二进制上传，才可以正常运行。</p>
<p>4.<strong>PHP项目所产生的缓存文件最好删除。</strong>Windows下开发中所产生的缓存文件，最好在上传Liunx之前，先删除。否则容易产生问题。</p>
<p>以上是这几天的项目经验，后面如有增加，会不断补充。</p>
<h3 class='related_post_title'>猜测您可以感兴趣的内容:</h3>
<ul class='related_post'>
<li><a href='http://www.i-jc.cn/index.php/%e6%94%b6%e8%97%8f20%e4%b8%aaphp%e5%b8%b8%e7%94%a8%e7%b1%bb%e5%ba%93-913/' title='[收藏]20个PHP常用类库'>[收藏]20个PHP常用类库</a></li>
<li><a href='http://www.i-jc.cn/index.php/php-sourceguardian-557/' title='PHP保护、加密的工具-SourceGuardian'>PHP保护、加密的工具-SourceGuardian</a></li>
<li><a href='http://www.i-jc.cn/index.php/php5-apache22-23/' title='[修改错误版]PHP5+APACHE2.2配置成功案例'>[修改错误版]PHP5+APACHE2.2配置成功案例</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.i-jc.cn/index.php/windows-php-liunx-151/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>[修改错误版]PHP5+APACHE2.2配置成功案例</title>
		<link>http://www.i-jc.cn/index.php/php5-apache22-23/</link>
		<comments>http://www.i-jc.cn/index.php/php5-apache22-23/#comments</comments>
		<pubDate>Mon, 19 May 2008 10:17:57 +0000</pubDate>
		<dc:creator>JCLee</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[APACHE]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.i-jc.cn/?p=23</guid>
		<description><![CDATA[PHP5+APACHE2.2配置成功案例： 第一、安装并配置APACHE（以我的为例，安装到E:\Program Files\Apache Software Foundation\Apache2.2） 1、安装时默认安装，Network Domain, Server Name 我填写我的计算机名，Administrator&#8217;s Email Address区域填你的邮件地址 2、安装完后在安装目录下有个conf文件夹，打开httpd.conf文件进行配置 ·找到 DocumentRoot ，将其设置为你所要存放php, htm等网页文件的文件夹，如 &#8220;E:\Program Files\Apache Software Foundation\Apache2.2\htdocs&#8221;； ·找到 DirectoryIndex ，在index.html后添加index.php, index.htm等，以单个空格将其分开； ·重启Apache，用http://localhost或http://127.0.0.1或http://yourcompanyname测试是否成功。成功的话屏幕会有个It works! 第二、安装配置PHP（解压PHP压缩包到d:\php\） 1、将php.ini-recommended文件重命名为php.ini并将其剪到系统所在目录下(如放在2000/NT的WINNT, XP的Windows目录下), 2、将extension_dir 改为php/ext所在目录，如 &#8220;d:\php\ext&#8221;； 3、将doc_root 改为第一步中的同样目录，如 &#8220;E:\Program Files\Apache Software Foundation\Apache2.2\htdocs&#8221;； 4、找到 ;session.save_path = &#8220;/tmp&#8221; ,将&#8217;;'去掉,设置你保存session的目录，如session.save_path = &#8220;D:/php/session_temp&#8221;； 5、然后把下面几句前面的分号去掉,以更好支持Mysql and PHPmyadmin extension=php_mbstring.dll extension=php_gd2.dll extension=php_mysql.dll 第三、PHP+APACHE 1、允许Apache将PHP程序作为模块来运行: 打开httpd.conf,添加下面内容(位置任意)： [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>PHP5+APACHE2.2配置成功案例：<br />
 第一、安装并配置APACHE（以我的为例，安装到E:\Program Files\Apache Software Foundation\Apache2.2）<br />
 1、安装时默认安装，Network Domain, Server Name 我填写我的计算机名，Administrator&#8217;s Email Address区域填你的邮件地址<br />
 2、安装完后在安装目录下有个conf文件夹，打开httpd.conf文件进行配置<br />
 ·找到 DocumentRoot ，将其设置为你所要存放php, htm等网页文件的文件夹，如 &#8220;E:\Program Files\Apache Software Foundation\Apache2.2\htdocs&#8221;；<br />
 ·找到 DirectoryIndex ，在index.html后添加index.php, index.htm等，以单个空格将其分开；<br />
 ·重启Apache，用http://localhost或http://127.0.0.1或http://yourcompanyname测试是否成功。成功的话屏幕会有个It works!<br />
 第二、安装配置PHP（解压PHP压缩包到d:\php\）<br />
 1、将php.ini-recommended文件重命名为php.ini并将其剪到系统所在目录下(如放在2000/NT的WINNT, XP的Windows目录下),<br />
 2、将extension_dir 改为php/ext所在目录，如 &#8220;d:\php\ext&#8221;；<br />
 3、将doc_root 改为第一步中的同样目录，如 &#8220;E:\Program Files\Apache Software Foundation\Apache2.2\htdocs&#8221;；<br />
 4、找到 ;session.save_path = &#8220;/tmp&#8221; ,将&#8217;;'去掉,设置你保存session的目录，如session.save_path = &#8220;D:/php/session_temp&#8221;；<br />
 5、然后把下面几句前面的分号去掉,以更好支持Mysql and PHPmyadmin<br />
 extension=php_mbstring.dll<br />
 extension=php_gd2.dll<br />
 extension=php_mysql.dll<br />
 第三、PHP+APACHE<br />
 1、允许Apache将PHP程序作为模块来运行:<br />
 打开httpd.conf,添加下面内容(位置任意)：<br />
 LoadModule php5_module &#8220;d:/php/php5apache2_2.dll&#8221;(特别注意这一条，很多地方是调用php5apache2.dll，这样在运行PHP代码时会提示httpd.exe应用程序错误)<br />
 AddType application/x-httpd-php .php<br />
 AddType application/x-httpd-php .htm<br />
 （.htm, .php为可执行php语言的扩展名，也可加html, php3, php4,甚至txt）<br />
 （以下两步可以不需要）<br />
 2、如果你出于某种原因而需要在CGI模式中运行PHP程序（使用Php.exe），<br />
 请将上面这一行变成注释（各行头加#即可），添加下面这些行：<br />
 #     ScriptAlias /php/ &#8220;d:/php/&#8221;<br />
 # AddType application/x-httpd-php .php<br />
 #Action application/x-httpd-php &#8220;/php/php-cgi.exe&#8221;<br />
 3、现在apache 2 支持HTML而不支持PHP,先把下面几句加到d:\apache2\conf\httpd.conf去:<br />
 # ScriptAlias /php/ &#8220;d:/php/&#8221;<br />
 # AddType application/x-httpd-php .php<br />
 #Action application/x-httpd-php &#8220;/php/php-cgi.exe&#8221;</p>
<p>第四、重起服务<br />
 1、在d:\PHP里找到php5ts.dll,libmysql.dll将其复制到c:\winnt\system32下(winNT/2000的机器),而winXP/2003是复制到c:\windows\system32下<br />
 2、测试Apache与php是否连接成功：<br />
 启动start apache服务或者正在运行的就重新启动restart apache<br />
 3、在Web根目录下新建test.php（即E:\Program Files\Apache Software Foundation\Apache2.2\htdocs目下）</p>
<p>phpinfo();<br />
 ?&gt;</p>
<p>4、运行http://localhost/test.php<br />
 如果成功，则应该看到一个含有PHP徽标的网页，其中包含大量设置和其他信息<br />
 那么恭喜你</p>
<p>备注：<br />
 如果不能运行，使用传统的模块化方法安装PHP5.1.* + apache 2.2.2 后不能启动,</p>
<p>提示:<br />
 &#8220;Cannot load D:/php/php5apache2.dll into server: The specified module could not be found.&#8221;</p>
<p>原因:</p>
<p>PHP压缩包里的php5apache2.dll只适用于apache2.0.*，是否把php5apache2.dll改为php5apache2_2.dll即第三步的第1小步<br />
 另外的解决方法:</p>
<p>下载（http://www.phpv.net/php5apache2.dll-php5.1.x.rar） 并解压.共有三个文件.</p>
<p>vcredist_x86.exe<br />
 php5apache2.dll<br />
 httpd.exe.manifest<br />
 1.将 php5apache2.dll 覆盖掉你原来PHP目录下的 php5apache2.dll 文件.<br />
 2.将 httpd.exe.manifest 文件复制到你的apache安装目录下的bin文件夹下.<br />
 3.双击运行vcredist_x86.exe安装.<br />
 完成!去重启你的apache试试吧.</p>
</blockquote>
<p>找了很多教程，都是Apache2，Apache2.2的版本很少。自己配置成功，现转载保存。</p>
<h3 class='related_post_title'>猜测您可以感兴趣的内容:</h3>
<ul class='related_post'>
<li><a href='http://www.i-jc.cn/index.php/%e6%94%b6%e8%97%8f20%e4%b8%aaphp%e5%b8%b8%e7%94%a8%e7%b1%bb%e5%ba%93-913/' title='[收藏]20个PHP常用类库'>[收藏]20个PHP常用类库</a></li>
<li><a href='http://www.i-jc.cn/index.php/php-sourceguardian-557/' title='PHP保护、加密的工具-SourceGuardian'>PHP保护、加密的工具-SourceGuardian</a></li>
<li><a href='http://www.i-jc.cn/index.php/windows-php-liunx-151/' title='Windows下开发的PHP项目转移到Liunx下几点总结'>Windows下开发的PHP项目转移到Liunx下几点总结</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.i-jc.cn/index.php/php5-apache22-23/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

