Home  >  Article  >  php教程  >  教你如何正确安装phpDocumentor

教你如何正确安装phpDocumentor

WBOY
WBOYOriginal
2016-06-13 11:09:251035browse

我们在进行

注意:以下假定用户使用PHP5,window系统!

安装phpDocumentor第一种方法:

下载后,如果希望使用命令行接口,解压到任意路径(假设在C:Program Files),修改C:Program FilesPhpDocumentor-1.4.2phpdoc.bat。把第一行修改SET phpCli=C:usrlocalphpcliphp.exe令等号右边的值为php.exe的路径,我的机器是SET phpCli=D:php5php.exe。

在命令行输入C:Program FilesPhpDocumentor-1.4.2phpdoc,其实是一个批处理文件,会出现一个dos界面,给你选择ini文件。后面就不知道了。

如果想使用web接口,你必须先把apache和php装好,把PhpDocumentor-1.4.2这个文件夹拷贝到文档根目录下,然后在浏览器url栏输入:

http://localhost/PhpDocumentor-1.4.2/phpdoc.php

然后浏览器会自动跳转,选择index.html,后面的操作就很简单了。

安装phpDocumentor第二种方法:

通过pear安装,进入dos的php目录,输入pear install -a PhpDocumentor。如果想使用web接口,则必须首先改变一个配置,
pear config-set data_dir /path/to/document_root/pear。最后的路径应该是/php文档根路径/pear(也可以在web接口中改变这个值)。我没在第二种方法的web接口试验成功。

如果使用web接口的话,还有选择,一种是每次都选择输入文件,输出文件之类。另一种是使用一个配置文件,里面把什么都定义好,进入页面后,先选择这个配置文件,然后点击“创建”按钮,


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn