将 PEARs php_dir 放入 php.ini 中的 include_path [英] Putting PEARs php_dir into include_path in php.ini

查看:53
本文介绍了将 PEARs php_dir 放入 php.ini 中的 include_path的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不确定如何根据 PEAR 网站上的说明更改我的 php.ini 文件

I'm unsure of how to alter my php.ini file according to the instructions on the PEAR website

它说在任何情况下,PEAR 的 php_dir 都应该在包含路径中.如果没有,请将其添加到系统的 php.ini 中."

It says "In every case, PEAR's php_dir should be in the include path. If not, add it in your system's php.ini."

在我的系统(Mac 10.6.6)上,这是 PEAR 的 php 目录

On my system(Mac 10.6.6), this is PEAR's php dir

/Users/michaelmitchell/pear/share/pear

在我的系统上,这是 php.ini 包含路径

On my system, this is the php.ini include path

.:/Applications/MAMP/bin/php5.3/lib/php

结果路径在我的 php.ini 中应该是什么样的?我是否删除当前路径并将其替换为 PEAR 的 php 目录路径?或者我以某种方式将两者结合起来?

What should the resulting path look like in my php.ini? Do I delete the current path and replace it with PEAR's php dir path? or do I somehow integrate the two?

感谢您的帮助.如果可以,请按原样输入整个路径.我不是很有经验...

Thanks for your help. If you can please type out the whole path as it should be. I'm not very experienced ...

推荐答案

您可能已经发现,您需要将系统的 php.ini 文件中的 PHP 路径配置指令include_path"设置为:

As you may have already discovered, you need to set the PHP path configuration directive, 'include_path', in your system's php.ini file to:

include_path = ".:/Applications/MAMP/bin/php5.3/lib/php:/Users/michaelmitchell/pear/share/pear"

有关如何在系统的 php.ini 文件中设置 PHP 路径配置指令include_path"的更详细说明,请参阅 我的回答对问题将文件移动"到包含路径列表中是什么意思?

For a more detailed explanation of how to set the PHP path configuration directive, 'include_path', in your system's php.ini file, please see my answer to the question What does it mean to 'move' a file into include path list?

希望这会有所帮助,

//.艾略特

这篇关于将 PEARs php_dir 放入 php.ini 中的 include_path的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆