Pear 安装注意事项
来源:互联网 发布:云计算应用的发展方向 编辑:程序博客网 时间:2024/05/21 09:48
Verifying the include path
To use PEAR and PEAR compatible packages in your applications, you normally include them into your PHP scripts using require_once(). For this to work, PEAR'sphp_dir
must be a part of PHP's include path.
First, check where PEAR installs
.php
files:$ pear config-get php_dir/usr/share/lib/php/
This directory will contain
System.php
.Now it's time to find which configuration file is used by your PHP installation. On command line, execute:
$ php --iniConfiguration File (php.ini) Path: /etc/php/cli-php5Loaded Configuration File: /etc/php/cli-php5/php.iniScan for additional .ini files in: /etc/php/cli-php5/ext-activeAdditional .ini files parsed: /etc/php/cli-php5/ext-active/php_gtk2.ini,/etc/php/cli-php5/ext-active/xdebug.ini
To see which
php.ini
is used by PHP on your web server, create a file with only<?php phpinfo(); ?>
as the contents, and save it in your local web root ascheck_php.php
. Open the file in your browser ashttp://localhost/check_php.php
, to find the path to thephp.ini
file your web server is using.Now check PHP's include_path setting on command line:
$ php -c /path/to/php.ini -r 'echo get_include_path()."\n";'
To check PHP's include_path in your web server, create a file with only
<?php phpinfo(); ?>
as the contents, and save it in your local web root ascheck_php.php
. Open the file in your browser ashttp://localhost/check_php.php
, to verify the include_path your web server is using.In every case, PEAR's
php_dir
should be in the include path. If not, add it in your system'sphp.ini
.这里特别要注意,如果你用的wamp,实际在起作用的php.ini并不是在php文件夹下,而是在apache里
;***** Added by go-pear
include_path=".;C:\Users\lein\pear"
;*****
- Pear 安装注意事项
- 安装pear
- 安装Pear
- 安装PEAR
- pear 安装
- pear安装
- pear 安装
- pear安装
- 安装pear
- pear安装
- pear安装及pear包HTTP_Request2安装
- PEAR DB的安装
- PHP PEAR安装记
- 安装pear(转)
- PEAR的安装
- windwos下安装pear
- windows 下pear安装
- Windows下安装PEAR
- How to schedule the thread's priority?
- 面试,面的不只是求职者
- VirtualBox安装 系统vdi压缩
- 程序员面试100题(算法)之C/C++实现字符串复制
- QTP 11 破解
- Pear 安装注意事项
- C语言病毒
- Android 如何防止代码被反编译
- 美科学家称噬菌体未来可为新型手机电池
- 最小生成树 kruskal(算法)
- easyui插件用法
- 别以为有vpn我找不到你(网警抓人全过程)
- SQL Sever生成修改所有字段排序规则
- 验证码的生成与验证1-------两个页面搞定