phpDocumentor - 无法打开输入文件:phpdoc.php

smo*_*ogg 17 php phpdoc sublimetext2

我正在尝试使用phpDocumentor(第一次,我不知道我在做什么).实际上,我只想在SublimeText 2和这个插件中使用它.你能一步一步地指导我做什么才能让它发挥作用?这就是我现在所做的:(我正在使用Windows 7)从这里下载phpDocumentor 并将其放置在某处.我已经创建了系统PATH phpdoc/bin(所以phpdoc.bat可以通过sublime插件执行)然后还添加了系统路径php(来自WAMPserver安装)

当我尝试使用我的插件(或phpdoc在控制台窗口内执行)时,我收到此错误:

Could not open input file: \phpdoc.php

Wło*_*jda 15

跑:

pear
Run Code Online (Sandbox Code Playgroud)

它会%PHP_PEAR_PHP_BIN%为你设定.


Eyd*_*dun 10

您需要将"PHP_PEAR_BIN_DIR"的环境路径设置为"phpdoc.php"所在的目录.


Far*_*mov 9

我已经将phpdoc.bat文件更改为指向phpdoc.php的确切位置

@echo off
if "%PHPBIN%" == "" set PHPBIN=php.exe
if not exist "%PHPBIN%" if "%PHP_PEAR_PHP_BIN%" neq "" goto USE_PEAR_PATH
GOTO RUN
:USE_PEAR_PATH
set PHPBIN=%PHP_PEAR_PHP_BIN%
:RUN
"%PHPBIN%" "C:\wamp\bin\php\php5.3.10\phpdoc.php" %*
Run Code Online (Sandbox Code Playgroud)


ash*_*azg 0

PHP 的 include_path 将需要包含该 phpdoc.php 文件的目录的路径。否则,使用带有相对路径的 require/include 语句的 phpDocumentor 代码将无法找到任何内容。