﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-From A Start,As An Acmer-随笔分类-PHP</title><link>http://www.cppblog.com/aswmtjdsj/category/17359.html</link><description>My Way to Final</description><language>zh-cn</language><lastBuildDate>Fri, 22 Jul 2011 08:11:08 GMT</lastBuildDate><pubDate>Fri, 22 Jul 2011 08:11:08 GMT</pubDate><ttl>60</ttl><item><title>[转]mac php环境搭建</title><link>http://www.cppblog.com/aswmtjdsj/archive/2011/07/22/151592.html</link><dc:creator>BUPT-[aswmtjdsj] @ Penalty</dc:creator><author>BUPT-[aswmtjdsj] @ Penalty</author><pubDate>Thu, 21 Jul 2011 18:01:00 GMT</pubDate><guid>http://www.cppblog.com/aswmtjdsj/archive/2011/07/22/151592.html</guid><wfw:comment>http://www.cppblog.com/aswmtjdsj/comments/151592.html</wfw:comment><comments>http://www.cppblog.com/aswmtjdsj/archive/2011/07/22/151592.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/aswmtjdsj/comments/commentRss/151592.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/aswmtjdsj/services/trackbacks/151592.html</trackback:ping><description><![CDATA[<div>               <p align="left" style="text-align:left;word-break:break-all"><strong><span style="font-size:18.0pt;font-family:Arial;Times New Roman&quot;;color:#333333;">mac php</span></strong><strong><span style="font-size:18.0pt;font-family:华文黑体;Times New Roman&quot;; color:#333333;">环境搭建一</span></strong><strong><span style="font-size:18.0pt;font-family:Arial;Times New Roman&quot;;color:#333333;">[</span></strong><strong><span style="font-size:18.0pt;font-family:华文黑体;Times New Roman&quot;;color:#333333;">转</span></strong><strong><span style="font-size:18.0pt; font-family:Arial;Times New Roman&quot;; color:#333333;">]</span></strong></p>  <table border="0" cellpadding="0" width="701" style="width:700.5pt;">  <tbody><tr>   <td style="padding:.75pt .75pt .75pt .75pt">   <p align="center" style="text-align:center;line-height:32.25pt;"><strong><span style="font-size:25.0pt;font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;"><a href="http://dancewithnet.com/2010/05/09/run-apache-php-mysql-in-mac-os-x/" title="到《在Mac OS X中配置Apache + PHP + MySQL》的永久链接"><span style="font-family:   HYZhongHeiJ;Times New Roman&quot;;color:#CCCCCC;text-decoration:none;text-underline:none">在</span><span style="color:#CCCCCC;text-decoration:none;text-underline:none">Mac OS X</span><span style="font-family:HYZhongHeiJ;Times New Roman&quot;;color:#CCCCCC;text-decoration:none;   text-underline:none">中配置</span><span style="color:#CCCCCC;text-decoration:   none;text-underline:none">Apache </span><span style="font-family:HYZhongHeiJ;Times New Roman&quot;;   color:#CCCCCC;text-decoration:none;text-underline:none">＋</span><span style="color:#CCCCCC;text-decoration:none;text-underline:none"> PHP </span><span style="font-family:HYZhongHeiJ;Times New Roman&quot;;color:#CCCCCC;text-decoration:none;   text-underline:none">＋</span><span style="color:#CCCCCC;text-decoration:none;   text-underline:none"> MySQL</span></a></span></strong></p>   <p align="left" style="margin-bottom:3.6pt;text-align:left;   text-indent:24.0pt;line-height:16.5pt;word-break:   break-all"><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;color:#333333;">Mac   OS X </span><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;   color:#333333;">内置了</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;   color:#333333;">Apache </span><span style="font-size:   12.5pt;font-family:宋体;Times New Roman&quot;;color:#333333;">和</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;color:#333333;"> PHP</span><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;color:#333333;">，这样使用起来非常方便。本文以</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;color:#333333;">Mac OS X 10.6.3</span><span style="font-size:12.5pt;   font-family:宋体;Times New Roman&quot;;color:#333333;">为例。主要内容包括：</span></p>   <p align="left" style="margin-left:74.4pt;text-align:left;   text-indent:-18.0pt;line-height:16.5pt;word-break:break-all"><span style="font-size:12.5pt;font-family:Arial;color:#333333;">1.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;"><a href="http://dancewithnet.com/2010/05/09/run-apache-php-mysql-in-mac-os-x/#apache"><span style="font-family:HYZhongHeiJ;Times New Roman&quot;;color:#AAAAAA;text-decoration:none;   text-underline:none">启动</span><span style="color:#AAAAAA;text-decoration:   none;text-underline:none">Apache</span></a></span></p>   <p align="left" style="margin-left:74.4pt;text-align:left;   text-indent:-18.0pt;line-height:16.5pt;word-break:break-all"><span style="font-size:12.5pt;font-family:Arial;color:#333333;">2.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;"><a href="http://dancewithnet.com/2010/05/09/run-apache-php-mysql-in-mac-os-x/#php"><span style="font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#AAAAAA;text-decoration:none;   text-underline:none">运行</span><span style="color:#AAAAAA;text-decoration:   none;text-underline:none">PHP</span></a></span></p>   <p align="left" style="margin-left:74.4pt;text-align:left;   text-indent:-18.0pt;line-height:16.5pt;word-break:break-all"><span style="font-size:12.5pt;font-family:Arial;color:#333333;">3.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;"><a href="http://dancewithnet.com/2010/05/09/run-apache-php-mysql-in-mac-os-x/#mysql"><span style="font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#AAAAAA;text-decoration:none;   text-underline:none">安装</span><span style="color:#AAAAAA;text-decoration:   none;text-underline:none">MySQL</span></a></span></p>   <p align="left" style="margin-left:74.4pt;text-align:left;   text-indent:-18.0pt;line-height:16.5pt;word-break:break-all"><span style="font-size:12.5pt;font-family:Arial;color:#333333;">4.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;"><a href="http://dancewithnet.com/2010/05/09/run-apache-php-mysql-in-mac-os-x/#phpmyadmin"><span style="font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#AAAAAA;text-decoration:none;   text-underline:none">使用</span><span style="color:#AAAAAA;text-decoration:   none;text-underline:none">phpMyAdmin</span></a></span></p>   <p align="left" style="margin-left:74.4pt;text-align:left;   text-indent:-18.0pt;line-height:16.5pt;word-break:break-all"><span style="font-size:12.5pt;font-family:Arial;color:#333333;">5.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;"><a href="http://dancewithnet.com/2010/05/09/run-apache-php-mysql-in-mac-os-x/#mcrypt"><span style="font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#AAAAAA;text-decoration:none;   text-underline:none">配置</span><span style="color:#AAAAAA;text-decoration:   none;text-underline:none">PHP</span><span style="font-family:FZZJ-TTMBFONT;Times New Roman&quot;;   color:#AAAAAA;text-decoration:none;text-underline:none">的</span><span style="color:#AAAAAA;text-decoration:none;text-underline:none">MCrypt</span><span style="font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#AAAAAA;text-decoration:none;   text-underline:none">扩展库</span></a></span></p>   <p align="left" style="margin-left:74.4pt;text-align:left;   text-indent:-18.0pt;line-height:16.5pt;word-break:break-all"><span style="font-size:12.5pt;font-family:Arial;color:#333333;">6.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;"><a href="http://dancewithnet.com/2010/05/09/run-apache-php-mysql-in-mac-os-x/#virtualhost"><span style="font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#AAAAAA;text-decoration:none;   text-underline:none">设置虚拟主机</span></a></span></p>   <p align="left" style="margin-top:18.0pt;margin-right:0cm;   margin-bottom:12.0pt;margin-left:0cm;text-align:left;word-break:break-all"><strong><span style="font-size:16.0pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:red;">启动</span></strong><strong><span style="font-size:16.0pt;font-family:   Arial;Times New Roman&quot;;Times New Roman&quot;;   color:red;">Apache</span></strong></p>   <p align="left" style="margin-top:3.6pt;margin-right:0cm;   margin-bottom:3.6pt;margin-left:0cm;text-align:left;text-indent:24.0pt;   line-height:16.5pt;word-break:break-all"><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;color:#333333;">有两种方法：</span></p>   <p align="left" style="margin-left:74.4pt;text-align:left;   text-indent:-18.0pt;line-height:16.5pt;word-break:break-all"><span style="font-size:12.5pt;font-family:Arial;color:#333333;">1.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">打开</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">&#8220;</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">系统设置偏好（</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">System Preferences</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">）</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">&#8221; -&gt; &#8220;</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">共享（</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">Sharing</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">）</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">&#8221; -&gt; &#8220;Web</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">共享（</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">Web Sharing</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">）</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">&#8221;</span></p>   <p align="left" style="margin-left:74.4pt;text-align:left;   text-indent:-18.0pt;line-height:16.5pt;word-break:break-all"><span style="font-size:12.5pt;font-family:Arial;color:#333333;">2.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">打开</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">&#8220;</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">终端（</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">terminal</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">）</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">&#8221;</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">，然</span><span style="font-size:12.5pt;   font-family:HYZhongHeiJ;Times New Roman&quot;;color:#333333;">后</span></p>   <p align="left" style="margin-left:98.4pt;text-align:left;   text-indent:-18.0pt;line-height:16.5pt;word-break:break-all"><span style="font-size:12.5pt;font-family:Arial;color:#333333;">a.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">运行</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">&#8220;</span><span style="font-size:10.0pt;font-family:Courier;color:#333333;">sudo apachectl start</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">&#8221;</span><span style="font-size:12.5pt;   font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">，再输入帐号密码，这样</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">Apache</span><span style="font-size:12.5pt;   font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">就运行了</span><span style="font-size:12.5pt;font-family:&quot;Microsoft Tai Le&quot;;Times New Roman&quot;;Microsoft Tai Le&quot;;color:#333333;">。</span></p>   <p align="left" style="margin-left:98.4pt;text-align:left;   text-indent:-18.0pt;line-height:16.5pt;word-break:break-all"><span style="font-size:12.5pt;font-family:Arial;color:#333333;">b.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">运行</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">&#8220;</span><span style="font-size:10.0pt;font-family:Courier;color:#333333;">sudo apachectl </span><span style="font-size:10.0pt;font-family:宋体;color:#333333;">－</span><span style="font-size:10.0pt;font-family:Courier;color:#333333;">v</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">&#8221;</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">，你会看到</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">Mac OS X 10.6.3</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">中的</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">Apache</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">版本号</span><span style="font-size:12.5pt;   font-family:&quot;Microsoft Tai Le&quot;;Times New Roman&quot;;Microsoft Tai Le&quot;;color:#333333;">：</span></p>   <p align="left" style="margin-left:98.4pt;text-align:left;   line-height:12.75pt;   word-break:break-all"><span style="font-size:10.0pt;font-family:   Courier;color:#333333;">Server   version: Apache/2.2.14 (Unix) Server built:<span>&nbsp;&nbsp;   </span>Feb 11 2010 14:40:31 </span></p>   <p align="left" style="margin-top:3.6pt;margin-right:0cm;   margin-bottom:3.6pt;margin-left:0cm;text-align:left;text-indent:24.0pt;   line-height:16.5pt;word-break:break-all"><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;color:#333333;">这样在浏览器中输入</span><span style="font-size:12.5pt;font-family:   Arial;Times New Roman&quot;;color:#333333;">&#8220;http://localhost&#8221;</span><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;   color:#333333;">，就可以看到出现一个内容为</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;   color:#333333;">&#8220;It works!&#8221;</span><span style="font-size:   12.5pt;font-family:宋体;Times New Roman&quot;;color:#333333;">的页面，它位于</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;color:#333333;">&#8220;/Library</span><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;color:#333333;">（资源库）</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;color:#333333;">/WebServer/Documents/&#8221;</span><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;color:#333333;">下，这是</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;color:#333333;">Apache</span><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;color:#333333;">的默认根目录。</span></p>   <p align="left" style="margin-top:3.6pt;margin-right:0cm;   margin-bottom:3.6pt;margin-left:0cm;text-align:left;text-indent:24.0pt;   line-height:16.5pt;word-break:break-all"><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;color:#333333;">注意：开启了</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;color:#333333;">Apache</span><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;color:#333333;">就是开启了</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;color:#333333;">&#8220;Web</span><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;color:#333333;">共享</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;color:#333333;">&#8221;</span><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;color:#333333;">，这时联网的用户就会通过</span><span style="font-size:12.5pt;font-family:   Arial;Times New Roman&quot;;color:#333333;">&#8220;http://[</span><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;   color:#333333;">本地</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;   color:#333333;">IP]/&#8221;</span><span style="font-size:12.5pt;   font-family:宋体;Times New Roman&quot;;color:#333333;">来访问</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;color:#333333;">&#8220;/Library</span><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;color:#333333;">（资源库）</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;color:#333333;">/WebServer/Documents/&#8221;</span><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;color:#333333;">目录，通过</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;color:#333333;">&#8220;http://[</span><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;color:#333333;">本地</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;color:#333333;">IP]/~[</span><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;color:#333333;">用户名</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;color:#333333;">]&#8221;</span><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;color:#333333;">来访问</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;color:#333333;">&#8220;/Users/[</span><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;color:#333333;">用户名</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;color:#333333;">]/Sites/&#8221;</span><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;color:#333333;">目录，可以通过设置</span><span style="font-size:12.5pt;font-family:   Arial;Times New Roman&quot;;color:#333333;">&#8220;</span><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;   color:#333333;">系统偏好设置</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;   color:#333333;">&#8221;</span><span style="font-size:12.5pt;   font-family:宋体;Times New Roman&quot;;color:#333333;">的</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;color:#333333;">&#8220;</span><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;color:#333333;">安全（</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;color:#333333;">Security</span><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;color:#333333;">）</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;color:#333333;">&#8221;</span><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;color:#333333;">中的</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;color:#333333;">&#8220;</span><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;color:#333333;">防火墙（</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;color:#333333;">Firewall</span><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;color:#333333;">）</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;color:#333333;">&#8221;</span><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;color:#333333;">来禁止这种访问。</span></p>   <p align="left" style="margin-top:18.0pt;margin-right:0cm;   margin-bottom:12.0pt;margin-left:0cm;text-align:left;word-break:break-all"><strong><span style="font-size:16.0pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:red;">运行</span></strong><strong><span style="font-size:16.0pt;font-family:   Arial;Times New Roman&quot;;Times New Roman&quot;;   color:red;">PHP</span></strong></p>   <p align="left" style="margin-left:74.4pt;text-align:left;   text-indent:-18.0pt;line-height:16.5pt;word-break:break-all"><span style="font-size:12.5pt;font-family:Arial;color:#333333;">1.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">在终端中运行</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">&#8220;</span><span style="font-size:10.0pt;font-family:Courier;color:#333333;">sudo vi /etc/apache2/httpd.conf</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">&#8221;</span><span style="font-size:12.5pt;   font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">，打开</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">Apache</span><span style="font-size:12.5pt;   font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">的配置文件。（如果不习惯操作终端和</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">vi</span><span style="font-size:12.5pt;   font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">的可以设置</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;"><a href="http://apple.tgbus.com/tutorial/soft/200811/20081125100105.shtml"><span style="font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#AAAAAA;text-decoration:none;   text-underline:none">在</span><span style="color:#AAAAAA;text-decoration:none;   text-underline:none">Finder</span><span style="font-family:FZZJ-TTMBFONT;Times New Roman&quot;;   color:#AAAAAA;text-decoration:none;text-underline:none">中显示所有的系统隐藏文件</span></a></span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">，记得需要</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;"><a href="http://www.macdocks.com/2009/07/14/mac-tips-%E4%B8%89%E7%A7%8D%E6%96%B9%E6%B3%95%E9%87%8D%E5%90%AFmac-os-x-finder/"><span style="font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#AAAAAA;text-decoration:none;   text-underline:none">重启</span><span style="color:#AAAAAA;text-decoration:   none;text-underline:none">Finder</span></a></span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">，这样就可以找到对应文件，随心所欲编辑了，但需要注意的是某些文件的修改需要</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;"><a href="http://support.apple.com/kb/HT1528?viewlocale=zh_CN"><span style="font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#AAAAAA;text-decoration:none;   text-underline:none">开启</span><span style="color:#AAAAAA;text-decoration:   none;text-underline:none">root</span><span style="font-family:FZZJ-TTMBFONT;Times New Roman&quot;;   color:#AAAAAA;text-decoration:none;text-underline:none">帐号</span></a></span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">，但整体上还是在终端上使用</span><span style="font-size:   12.5pt;font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">sudo</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">来临时获取</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">root</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">权限比较安全。</span><span style="font-size:12.5pt;   font-family:&quot;Microsoft Tai Le&quot;;Times New Roman&quot;;Microsoft Tai Le&quot;;color:#333333;">）</span></p>   <p align="left" style="margin-left:74.4pt;text-align:left;   text-indent:-18.0pt;line-height:16.5pt;word-break:break-all"><span style="font-size:12.5pt;font-family:Arial;color:#333333;">2.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">找到</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">&#8220;</span><span style="font-size:10.0pt;font-family:Courier;color:#333333;">#LoadModule php5_module   libexec/apache2/libphp5.so</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">&#8221;</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">，把前面的</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">#</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">号去掉，保存并退出</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">vi</span><span style="font-size:12.5pt;font-family:&quot;Microsoft Tai Le&quot;;Times New Roman&quot;;Microsoft Tai Le&quot;;color:#333333;">。</span></p>   <p align="left" style="margin-left:74.4pt;text-align:left;   text-indent:-18.0pt;line-height:16.5pt;word-break:break-all"><span style="font-size:12.5pt;font-family:Arial;color:#333333;">3.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">运行</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">&#8220;</span><span style="font-size:10.0pt;font-family:Courier;color:#333333;">sudo cp /etc/php.ini.default   /etc/php.ini</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;   color:#333333;">&#8221;</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">，这样就可以通过</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">php.ini</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">来配置各种</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">PHP</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">功能了。比如</span><span style="font-size:12.5pt;   font-family:&quot;Microsoft Tai Le&quot;;Times New Roman&quot;;Microsoft Tai Le&quot;;color:#333333;">：</span></p>   <p align="left" style="margin-left:74.4pt;text-align:left;   line-height:12.75pt;   word-break:break-all"><span style="font-size:8.5pt;font-family:   Verdana;color:#777777;">;</span><span style="font-size:8.5pt;font-family:宋体;color:#777777;">通过下面两项来调整</span><span style="font-size:8.5pt;font-family:Verdana;color:#777777;">PHP</span><span style="font-size:   8.5pt;font-family:宋体;color:#777777;">提交文件的最大值，比如</span><span style="font-size:8.5pt;font-family:Verdana;color:#777777;">phpMyAdmin</span><span style="font-size:8.5pt;font-family:宋体;color:#777777;">中导入数据的最大值</span><span style="font-size:10.0pt;font-family:Courier;color:#333333;"> upload_max_filesize = 2M post_max_size   = 8M </span><span style="font-size:8.5pt;font-family:Verdana;color:#777777;">;</span><span style="font-size:8.5pt;font-family:宋体;color:#777777;">比如通过</span><span style="font-size:8.5pt;font-family:Verdana;color:#777777;">display_errors</span><span style="font-size:8.5pt;font-family:宋体;color:#777777;">来控制是否显示</span><span style="font-size:8.5pt;font-family:Verdana;color:#777777;">PHP</span><span style="font-size:   8.5pt;font-family:宋体;color:#777777;">程序的报错</span><span style="font-size:10.0pt;font-family:Courier;color:#333333;"> display_errors = Off </span></p>   <p align="left" style="margin-left:74.4pt;text-align:left;   text-indent:-18.0pt;line-height:16.5pt;word-break:break-all"><span style="font-size:12.5pt;font-family:Arial;color:#333333;">4.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">运行</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">&#8220;</span><span style="font-size:10.0pt;font-family:Courier;color:#333333;">sudo apachectl restart</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">&#8221;</span><span style="font-size:12.5pt;   font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">，重启</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">Apache</span><span style="font-size:12.5pt;   font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">，这样</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">PHP</span><span style="font-size:12.5pt;   font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">就可以用了</span><span style="font-size:12.5pt;font-family:&quot;Microsoft Tai Le&quot;;Times New Roman&quot;;Microsoft Tai Le&quot;;color:#333333;">。</span></p>   <p align="left" style="margin-left:74.4pt;text-align:left;   text-indent:-18.0pt;line-height:16.5pt;word-break:break-all"><span style="font-size:12.5pt;font-family:Arial;color:#333333;">5.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">运行</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">&#8220;</span><span style="font-size:10.0pt;font-family:Courier;color:#333333;">cp   /Library/WebServer/Documents/index.html.en   /Library/WebServer/Documents/info.php</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">&#8221;</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">，即在</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">Apache</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">的根目录下复制</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">index.html.en</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">文件并重命名为</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">info.php</span></p>   <p align="left" style="margin-left:74.4pt;text-align:left;   text-indent:-18.0pt;line-height:16.5pt;word-break:break-all"><span style="font-size:12.5pt;font-family:Arial;color:#333333;">6.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">在终端中运行</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">&#8220;</span><span style="font-size:10.0pt;font-family:Courier;color:#333333;">vi   /Library/WebServer/Document/info.php</span><span style="font-size:   12.5pt;font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">&#8221;</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">，这样就可以在</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">vi</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">中编辑</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">info.php</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">文件了。在</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">&#8220;It&#8217;s works!&#8221;</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">后面加上</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">&#8220;</span><span style="font-size:10.0pt;font-family:Courier;color:#333333;">&lt;?php phpinfo(); ?&gt;</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">&#8221;</span><span style="font-size:12.5pt;   font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">，然后保存之。这样就可以在</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">http://localhost/info.php</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">中看到有关</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">PHP</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">的信息，比如版本号是</span><span style="font-size:   12.5pt;font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">5.3.1</span><span style="font-size:12.5pt;font-family:&quot;Microsoft Tai Le&quot;;Times New Roman&quot;;Microsoft Tai Le&quot;;color:#333333;">。</span></p>   <p align="left" style="margin-top:18.0pt;margin-right:0cm;   margin-bottom:12.0pt;margin-left:0cm;text-align:left;word-break:break-all"><strong><span style="font-size:16.0pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:red;">安装</span></strong><strong><span style="font-size:16.0pt;font-family:   Arial;Times New Roman&quot;;Times New Roman&quot;;   color:red;">MySQL</span></strong></p>   <p align="left" style="text-align:left;text-indent:24.0pt;   line-height:16.5pt;word-break:break-all"><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;color:#333333;">由于</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;color:#333333;">Mac   OS X</span><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;   color:#333333;">中并没有预装</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;   color:#333333;">MySQL</span><span style="font-size:12.5pt;   font-family:宋体;Times New Roman&quot;;color:#333333;">，所以需要自己手动安装，目前</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;color:#333333;">MySQL</span><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;color:#333333;">的最稳定版本是</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;color:#333333;">5.1</span><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;color:#333333;">。</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;color:#333333;"><a href="http://dev.mysql.com/doc/refman/5.1/en/mac-os-x-installation.html"><span style="color:#AAAAAA;text-decoration:none;text-underline:none">MySQL</span><span style="font-family:宋体;   color:#AAAAAA;text-decoration:none;text-underline:none">提供了</span><span style="color:#AAAAAA;text-decoration:none;text-underline:none">Mac OS X</span><span style="font-family:宋体;   color:#AAAAAA;text-decoration:none;text-underline:none">下的安装说明</span></a></span><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;color:#333333;">。</span></p>   <p align="left" style="margin-left:74.4pt;text-align:left;   text-indent:-18.0pt;line-height:16.5pt;word-break:break-all"><span style="font-size:12.5pt;font-family:Arial;color:#333333;">1.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;"><a href="http://dev.mysql.com/downloads/mysql/5.1.html"><span style="font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#AAAAAA;text-decoration:none;   text-underline:none">下载</span><span style="color:#AAAAAA;text-decoration:   none;text-underline:none">MySQL 5.1</span></a></span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">。选择合适的版本，比如这里选择的是</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">mysql-5.1.46-osx10.6-x86_64.dmg</span><span style="font-size:12.5pt;font-family:&quot;Microsoft Tai Le&quot;;Times New Roman&quot;;Microsoft Tai Le&quot;;color:#333333;">。</span></p>   <p align="left" style="margin-left:74.4pt;text-align:left;   text-indent:-18.0pt;line-height:16.5pt;word-break:break-all"><span style="font-size:12.5pt;font-family:Arial;color:#333333;">2.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">运行</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">dmg</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">，会发现里面有</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">4</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">个文件。首先点击安装</span><span style="font-size:   12.5pt;font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">mysql-5.1.46-osx10.6-x86_64.pkg</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">，这是</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">MySQL</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">的主安装包。一般情况下，安装文件会自动把</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">MySQL</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">安装到</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">/usr/local</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">下的同名文件夹下。比如点击运行</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">&#8220;mysql-5.1.46-osx10.6-x86_64.dmg&#8221;</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">会把</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">MySQ</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">安装到</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">&#8220;</span><span style="font-size:10.0pt;font-family:Courier;color:#333333;">/usr/local/mysql-5.1.46-osx10.6-x86_64</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">&#8221;</span><span style="font-size:12.5pt;   font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">中。一路默认安装完毕即可</span><span style="font-size:12.5pt;font-family:&quot;Microsoft Tai Le&quot;;Times New Roman&quot;;Microsoft Tai Le&quot;;color:#333333;">。</span></p>   <p align="left" style="margin-left:74.4pt;text-align:left;   text-indent:-18.0pt;line-height:16.5pt;word-break:break-all"><span style="font-size:12.5pt;font-family:Arial;color:#333333;">3.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">点击安装第</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">2</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">个文件</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">MySQLStartupItem.pkg</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">，这样</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">MySQL</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">就会自动在开机时自动启动了</span><span style="font-size:   12.5pt;font-family:&quot;Microsoft Tai Le&quot;;Times New Roman&quot;;Microsoft Tai Le&quot;;color:#333333;">。</span></p>   <p align="left" style="margin-left:74.4pt;text-align:left;   text-indent:-18.0pt;line-height:16.5pt;word-break:break-all"><span style="font-size:12.5pt;font-family:Arial;color:#333333;">4.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">点击安装第</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">3</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">个文件</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">MySQL.prefPane</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">，这样就会在</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">&#8220;</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">系统设置偏好</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">&#8221;</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">中看到名为</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">&#8220;MySQL&#8221;</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">的</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">ICON</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">，通过它就可以设置</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">MySQL</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">开始还是停止，以及是否开机时自动运行。到这里</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">MySQL</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">就基本安装完毕了</span><span style="font-size:12.5pt;   font-family:&quot;Microsoft Tai Le&quot;;Times New Roman&quot;;Microsoft Tai Le&quot;;color:#333333;">。</span></p>   <p align="left" style="margin-left:74.4pt;text-align:left;   text-indent:-18.0pt;line-height:16.5pt;word-break:break-all"><span style="font-size:12.5pt;font-family:Arial;color:#333333;">5.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">通过运行</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">&#8220;</span><span style="font-size:10.0pt;font-family:Courier;color:#333333;">sudo vi /etc/bashrc</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">&#8221;</span><span style="font-size:12.5pt;   font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">，在</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;Times New Roman&quot;;color:#333333;">bash</span><span style="font-size:12.5pt;   font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">的配置文件中加入</span><span style="font-size:10.0pt;font-family:Courier;color:#333333;">mysql</span><span style="font-size:12.5pt;font-family:FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">和</span><span style="font-size:10.0pt;   font-family:Courier;color:#333333;">mysqladmin</span><span style="font-size:12.5pt;font-family:   FZZJ-TTMBFONT;Times New Roman&quot;;color:#333333;">的别</span><span style="font-size:12.5pt;font-family:HYZhongHeiJ;Times New Roman&quot;;color:#333333;">名</span></p>   <p align="left" style="margin-left:74.4pt;text-align:left;   line-height:12.75pt;   word-break:break-all"><span style="font-size:10.0pt;font-family:   Courier;color:#333333;">#mysql   alias mysql='/usr/local/mysql/bin/mysql' alias   mysqladmin='/usr/local/mysql/bin/mysqladmin' </span></p>   <p align="left" style="margin-left:74.4pt;text-align:left;   text-indent:24.0pt;line-height:16.5pt;word-break:   break-all"><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;   color:#333333;">这样就可以在终端中比较简单地通过命令进行相应的操作，比如安装完毕之后</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;color:#333333;">MySQL</span><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;color:#333333;">的</span><span style="font-size:10.0pt;font-family:Courier;color:#333333;">root</span><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;color:#333333;">默认密码为空，如果要设置密码可以在终端运行</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;color:#333333;">&#8220;</span><span style="font-size:10.0pt;   font-family:Courier;color:#333333;">mysqladmin -u root password "mysqlpassword"</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;color:#333333;">&#8221;</span><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;color:#333333;">来设置，其中</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;color:#333333;">mysqlpassword</span><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;color:#333333;">即</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;color:#333333;">root</span><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;color:#333333;">的密码。更多相关内容可以参考</span><span style="font-size:12.5pt;   font-family:Arial;Times New Roman&quot;;color:#333333;"><a href="http://dev.mysql.com/doc/refman/5.1/en/resetting-permissions.html"><span style="color:#AAAAAA;text-decoration:none;text-underline:none">B.5.4.1. How   to Reset the Root Password</span></a></span><span style="font-size:12.5pt;   font-family:宋体;Times New Roman&quot;;color:#333333;">。</span></p>   <p align="left" style="margin-top:3.6pt;margin-right:0cm;   margin-bottom:3.6pt;margin-left:0cm;text-align:left;text-indent:24.0pt;   line-height:16.5pt;word-break:break-all"><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;color:#333333;">注意：</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;color:#333333;">Mac   OS X</span><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;   color:#333333;">的升级或者其他原因可能会导致Ｍ</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;   color:#333333;">ySQL</span><span style="font-size:12.5pt;   font-family:宋体;Times New Roman&quot;;color:#333333;">启动或者开机自动运行，在Ｍ</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;color:#333333;">ySQL</span><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;color:#333333;">的操作面板上会提示</span><span style="font-size:12.5pt;font-family:   Arial;Times New Roman&quot;;color:#333333;">&#8220;</span><span style="font-size:10.0pt;font-family:Courier;color:#333333;">Warning:The   /usr/local/mysql/data directory is not owned by the 'mysql' or '_mysql'&nbsp;</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;color:#333333;">&#8221;</span><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;color:#333333;">，或者在命令行下提示</span><span style="font-size:12.5pt;font-family:   Arial;Times New Roman&quot;;color:#333333;">&#8220;</span><span style="font-size:10.0pt;font-family:Courier;color:#333333;">Can't   connect to local MySQL server through socket '/tmp/mysql.sock' (2)</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;color:#333333;">&#8221;</span><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;color:#333333;">，这应该是某种情况下导致</span><span style="font-size:12.5pt;font-family:   Arial;Times New Roman&quot;;color:#333333;">/usr/local/mysql/data</span><span style="font-size:12.5pt;font-family:   宋体;Times New Roman&quot;;   color:#333333;">的宿主发生了改变，只需要运行</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;   color:#333333;">&#8220;s</span><span style="font-size:10.0pt;font-family:Courier;   color:#333333;">udo chown -R mysql /usr/local/mysql/data</span><span style="font-size:12.5pt;font-family:Arial;Times New Roman&quot;;color:#333333;">&#8221;</span><span style="font-size:12.5pt;font-family:宋体;Times New Roman&quot;;color:#333333;">即可。</span></p>   </td>  </tr> </tbody></table>  <p>&nbsp;</p></div><img src ="http://www.cppblog.com/aswmtjdsj/aggbug/151592.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/aswmtjdsj/" target="_blank">BUPT-[aswmtjdsj] @ Penalty</a> 2011-07-22 02:01 <a href="http://www.cppblog.com/aswmtjdsj/archive/2011/07/22/151592.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[转]关于linux下的PHP －－先转来备用</title><link>http://www.cppblog.com/aswmtjdsj/archive/2011/07/20/151514.html</link><dc:creator>BUPT-[aswmtjdsj] @ Penalty</dc:creator><author>BUPT-[aswmtjdsj] @ Penalty</author><pubDate>Wed, 20 Jul 2011 15:58:00 GMT</pubDate><guid>http://www.cppblog.com/aswmtjdsj/archive/2011/07/20/151514.html</guid><wfw:comment>http://www.cppblog.com/aswmtjdsj/comments/151514.html</wfw:comment><comments>http://www.cppblog.com/aswmtjdsj/archive/2011/07/20/151514.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/aswmtjdsj/comments/commentRss/151514.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/aswmtjdsj/services/trackbacks/151514.html</trackback:ping><description><![CDATA[<div><a href="http://linux.chinaitlab.com/SHELL/26496.html">原帖地址<br />
</a>
linux下的PHP IDE<br />
<span class="Apple-style-span" style="font-family: 宋体; line-height: normal; ">
<h1 class="Article_tle" style="margin-top: 10px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; width: 500px; line-height: 45px; font-size: 13px; font-family: Tahoma; color: #00536d; ">1.磨刀不误砍柴工---PHP开发工具集锦</h1>
</span><span class="Apple-style-span" style="font-family: 宋体; line-height: 25px; ">这里介绍了一些 PHP IDE 工具，非常见的 Editplus 之类的，都是专门为 PHP 开发的，有兴趣都可以试试看，找出自己用得顺手的就可以了，呵呵，本人一年来都是用 Zend Studio 作为开发工具，因为调试和编写都很方便，代码检测功能和手册查阅功能我非常喜欢。<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
我这里整理的都是专门为PHP设计的IDE，editplus,Ultra Edit等常用文本工具我就不介绍了！其中一些介绍是从那些<a class="channel_keylink" href="http://download.chinaitlab.com/" target="_blank" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; font-size: 14px; font-family: 宋体; text-decoration: none; color: #0000ff; line-height: 22px; ">下载</a>站里复制过来的！<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
<strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; ">Zend Studio</strong><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
开发商: http://www.zend.com/store/products/zend-studio.php<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
目前公认的最强大的PHP开发工具，这种集成软件包包括了用于编辑，调试，配置PHP程序所需要的客户及<a class="channel_keylink" href="http://server.chinaitlab.com/" target="_blank" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; font-size: 14px; font-family: 宋体; text-decoration: none; color: #0000ff; line-height: 22px; ">服务器</a>组件，软件包具有工业标准的PHP开发环境，代码完成引擎，功能齐全的调试器等<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
<strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; ">NuSphere PHPEd</strong><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
http://www.nusphere.com/<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
PhpED 通过无与伦比的PHP调试和压缩能力，以及一个新的NuSOAP web服务向导成为了PHP领域的领军产品。更加强大的Project Manager使得发布站点和应用程序比以前更加容易。现在可以在线程级别对正在运行或者开发中的程序进行<a class="channel_keylink" href="http://softtest.chinaitlab.com/" target="_blank" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; font-size: 14px; font-family: 宋体; text-decoration: none; color: #0000ff; line-height: 22px; ">测试</a>和调校。支持 CVS 版本控制，而且，对PostgreSQL和MySQL数据库的本地支持为PHP使用开源数据库提供了一个广泛的环境。但对中文支持不太好，汉字都当作单字节处理了。PHPED还有Linux版本。<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
<strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; ">PHP Coder</strong><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
http://www.phpide.de/<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
PHPCoder用于快速开发和调试PHP应用程序,它很容易扩展和定制,完全能够符合开发者的个性要求.1:结合了PHP编译器和参考文档,可以对编辑中的PHP脚本进行即时预览2:支持高亮显示HTML和PHP代码;3:自动完成功能,可以自动完成用户自定义代码片断;4:标准函数提示;5:有专门的工程项目管理器;6:对象浏览器搜寻编辑中文件的包含信息,自定义函数,并以树形显示.7:支持查找对称的语句标记符;8:支持高级搜索和替换;9:自带FTP功能;10:支持运行和断点调试11:......总之,PHPCoder是一个非常实用的,功能强大的编程环境,而且它是免费的！<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
<strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; ">Ankord PHP Expert Editor</strong><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
http://www.ankord.com/phpxedit.html<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
PHP Expert Editor是一个容易使用的 PHP 开发工具，它的功能照顾到初级者及专业开发人员。 PHP Expert Editor 内建 http server 用作<a class="channel_keylink" href="http://softtest.chinaitlab.com/" target="_blank" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; font-size: 14px; font-family: 宋体; text-decoration: none; color: #0000ff; line-height: 22px; ">测试</a>及除错(你也可以使用其他 http server), PHP 语法检查, FTP 功能, 程式码样板等功能。<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
<strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; ">DzSoft PHP Editor</strong><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
http://www.dzsoft.com/dzphp.htm<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
专为 PHP 所设计的网页程序编辑软件 - DzSoft PHP Editor，具有 PHP 编辑、侦错、浏览、原始码检视、档案浏览、可自订的原始码样本..等功能，无须架设网站主机就可以测试 PHP 指令码，是一套功能强大的 PHP 编程软件。<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
DzSoft PHP Editor和Ankord PHP Expert Editor非常相识，几乎找不到他们的主要区别，关于这两个软件之间的具体内幕我也不太清楚！<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
<strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; ">Dev-PHP IDE</strong><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
http://devphp.sourceforge.net/<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
非常好用的php编辑器，支持php-gtk，內建許多快速html表单，非常的好用，本身含繁体语言包，另附暗地论坛的中文语言包<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
<strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; ">Master PHP</strong><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
http://www.gsoftwares.com/<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
一款支持PHP, PHP3, PHTML,&nbsp;<a class="channel_keylink" href="http://webdesign.chinaitlab.com/List_1367.html" target="_blank" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; font-size: 14px; font-family: 宋体; text-decoration: none; color: #0000ff; line-height: 22px; ">CSS</a>, JS, HTML, HTM and SQL的编辑器，它允许用户编辑多种一次编辑多种文件，允许插入，运行和最优化程序的脚本，用户可以通过工具栏定制按钮和窗体，可以导出html和rtf格式，支持18种语言<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
<strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; ">Komodo</strong><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
http://www.activestate.com/Products/Komodo/<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
Komodo支持在<a class="channel_keylink" href="http://windows.chinaitlab.com/" target="_blank" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; font-size: 14px; font-family: 宋体; text-decoration: none; color: #0000ff; line-height: 22px; ">Windows</a>与Linux上，Perl、Python及<a class="channel_keylink" href="http://java.chinaitlab.com/" target="_blank" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; font-size: 14px; font-family: 宋体; text-decoration: none; color: #0000ff; line-height: 22px; ">Java</a>Script等的程序语言开发，以及多种程序语言语法不同颜色标注。这款功能强大的IDE竟然不支持中文，连中文文件名的文件都打不开！<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
<strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; ">Maguma Studio</strong><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
http://www.maguma.com/<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
Maguma Studio包含了编辑和调试 PHP 程序所有必须的工具。无论您是经验丰富的开发者、或是初学者它都适合您。带有十分完整的断点、分步等调试功能。支持以树形方式显示文件中的函数和类成员。<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
<strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; ">PhpLens</strong><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
http://phplens.com<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
PhpLens是一款专为PHP开发人员准备的快速数据库开发程序。通过使用PhpLens，可以快速的设计、发布和维护数据库驱动的网络产品。它允许你以HTML表格的形式对数据库进行浏览、编辑、创建、删除和查找。不用写任何代码，它就允许你完成上述操作。<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
先介绍到这里，以后再慢慢整理，虽然上面的软件都很强大，但我最习惯用的还是editplus。一则我水平不够，这些软件的很多功能用不上，二则英文太差，想用他们还需要熟悉一段时间，更多的PHP IDE可以参考这篇文章 http://www.<a class="channel_keylink" href="http://linux.chinaitlab.com/" target="_blank" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; font-size: 14px; font-family: 宋体; text-decoration: none; color: #0000ff; line-height: 22px; ">linux</a>docs.org/HOWTOs/PHP-HOWTO-9.html</span><br />
<br />
2.
<div style="display: inline-block; "></div>
<span class="Apple-style-span" style="color: #686e55; font-family: Arial; font-weight: bold; line-height: 26px; ">vim 查看php手册</span>
<br />
<span class="Apple-style-span" style="color: #686e55; font-family: Arial; line-height: 18px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">
<p style="line-height: normal; ">这个插件可以查看php函数参数定义</p>
<p style="line-height: normal; "><a href="http://www.vim.org/scripts/script.php?script_id=2805" style="color: #2a6400; font-size: 12px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: normal; text-decoration: none; line-height: normal; ">http://www.vim.org/scripts/script.php?script_id=2805</a></p>
<p style="line-height: normal; ">&nbsp;</p>
<p style="line-height: normal; ">参考 http://vim.wikia.com/wiki/PHP_manual_in_Vim_help_format</p>
<br style="line-height: normal; " />
下载&nbsp;<a href="http://vim.wikia.com/index.php?title=Special:Outbound&amp;f=PHP_manual_in_Vim_help_format&amp;u=http%3A%2F%2Fwww.interpotential.com%2Fdownloads%2Fvim%2Fvim-php-manual.tar.gz" title="http://www.interpotential.com/downloads/vim/vim-php-manual.tar.gz" class="external" style="color: #2a6400; font-size: 12px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: normal; text-decoration: none; line-height: normal; ">http://www.interpotential.com/downloads/vim/vim-php-manual.tar.gz</a><br style="line-height: normal; " />
解压到&nbsp; D:\Vim\vimfiles\php-manual\doc&nbsp;<br style="line-height: normal; " />
<br style="line-height: normal; " />
doc 目录里面是一堆 txt文件 还有一个没有后缀名的 tags 文件<br style="line-height: normal; " />
<br style="line-height: normal; " />
用vim打开 tags&nbsp; 然后输入 :%sort 命令回车 然后 :w 保存 再 :q 退出&nbsp;<br style="line-height: normal; " />
<br style="line-height: normal; " />
修改 vim 配置文件&nbsp;&nbsp;<br style="line-height: normal; " />
加上<br style="line-height: normal; " />
<br style="line-height: normal; " />
set runtimepath+=D:\Vim\vimfiles\php-manual<br style="line-height: normal; " />
autocmd BufNewFile,Bufread *.module,*.inc,*.php set keywordprg="help"<br style="line-height: normal; " />
<br style="line-height: normal; " />
当光标处于php自带函数上时 按大写K 会显示具体的函数描述&nbsp; 非常好用<br style="line-height: normal; " />
<span style="line-height: normal; "><img border="0" src="http://hiphotos.baidu.com/quqiufeng/pic/item/cd3623d716ae8195a144df80.jpg" small="0" class="blogimg" width="860" height="614" style="line-height: normal; width: 860px; height: 614.7970863683663px; " alt="" /></span></span><br />
</div>
<div><span class="Apple-style-span" style="color: #686e55; font-family: Arial; line-height: 18px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><span style="line-height: normal; "><br />
</span></span>3.<span class="Apple-style-span" style="color: #686e55; font-family: Arial; font-weight: bold; line-height: 26px; ">django文档</span><span class="Apple-style-span" style="color: #686e55; font-family: Arial; line-height: 18px; "><div class="date" style="font-family: Verdana; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 10px; line-height: 18px; margin-top: 0px; margin-right: 0px; margin-bottom: 8px; margin-left: 12px; color: #888888; text-align: left; ">2010-10-08 15:38</div><table style="table-layout: fixed; width: 878px; "><tbody><tr><td style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 12px; line-height: 18px; "><div id="blog_text" class="cnt" style="font-family: Arial; word-wrap: break-word; word-break: normal; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 12px; line-height: 18px; overflow-x: hidden; overflow-y: hidden; position: relative !important; "><a href="http://code.google.com/p/django-doc/downloads/list" style="color: #2a6400; font-size: 12px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: normal; text-decoration: none; line-height: normal; ">http://code.google.com/p/django-doc/downloads/list</a>&nbsp; 离线文档下载<br style="line-height: normal; " /><br style="line-height: normal; " />http://www.djangobook.com/en/2.0/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; apress版文档 经典的<br style="line-height: normal; " /><br style="line-height: normal; " />http://djangobook.py3k.cn/2.0/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br style="line-height: normal; " />上一个的中文版 翻译的差不多了&nbsp; 有时候打不开 有pdf版本<br style="line-height: normal; " />地址是&nbsp; http://wenku.baidu.com/view/8c749b62caaedd3383c4d3f7.html</div></td></tr></tbody></table></span></div><img src ="http://www.cppblog.com/aswmtjdsj/aggbug/151514.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/aswmtjdsj/" target="_blank">BUPT-[aswmtjdsj] @ Penalty</a> 2011-07-20 23:58 <a href="http://www.cppblog.com/aswmtjdsj/archive/2011/07/20/151514.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>