ini文件中的路径还是include

ini文件中的路径还是include

本文介绍了phpDocumentor - “phpdoc是在php.ini文件中的路径还是include_path中?”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试运行phpDocumentor并且收到这个错误...我在Google上广泛搜索,找不到可行的解决方案,不幸的是我无法通过PEAR安装,所以我必须从他们的github并尝试手动执行。



我已经设置了环境变量


$ b $ C:\xampp\php\pear\phpDocumentor; C:\ phpDocumentor\bin;

还有 php.ini 中的include_path:

  include_path =。; C:\xampp\php\pear\phpDocumentor; C:\xampp\php\pear \phpDocumentor\bin; C:\xampp\php\PEAR

尝试通过使用以下代码生成文档: phpdoc -d Z:-t Z:\docs\phpDoc



但是我收到以下错误:

我被这个困扰,真的很感谢任何关于获得这项工作的建议谢谢!

解决方案

解析配置在文件phpDocumentor.ini ...(发现在C:\php\pear\data / PhpDocumentor /)...错误:无法打开phpDocumentor.ini目录C:/ xampp / php / pear / PhpDocumentor -Is phpdoc在您的php.ini文件中的路径或include_path?



错误是phpdoc.bat设置的原因。简单的解决方案是复制文件夹C:/ xampp / php / pear / PhpDocumentor到C:\php\pear\data\放置,或者您可以在phpdoc.bat文件中设置路径。检查您是否没有任何phpDocumentor.ini文件,然后从互联网创建或下载。


I'm trying to run phpDocumentor and am getting this error... I've searched extensively on Google and cannot find a solution that works, unfortunately I couldn't install via PEAR so I've had to download from their github and try to do things manually.

I have set the environmental variables as appropriate:

C:\xampp\php;C:\xampp\php\pear\phpDocumentor;C:\xampp\php\pear\phpDocumentor\bin;

And the include_path within php.ini too:

include_path = ".;C:\xampp\php\pear\phpDocumentor;C:\xampp\php\pear\phpDocumentor\bin;C:\xampp\php\PEAR"

I'm trying to generate docs by using the following code: phpdoc -d Z: -t Z:\docs\phpDoc

But then I get the following error:

I'm stumped by this, would really appreciate any advice on getting this working, thank you!

解决方案

Parsing configuration file phpDocumentor.ini... (found in C:\php\pear\data/PhpDocumentor/)... ERROR: cannot open phpDocumentor.ini in directory C:/xampp/php/pear/PhpDocumentor -Is phpdoc in either the path or include_path in your php.ini file?

Error is cause of phpdoc.bat settings. Simple solutions is copy folder C:/xampp/php/pear/PhpDocumentor to C:\php\pear\data\ place or you can set your path with in phpdoc.bat file. Check if you have no any phpDocumentor.ini file then create or download from internet.

这篇关于phpDocumentor - “phpdoc是在php.ini文件中的路径还是include_path中?”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-28 18:48