include path是怎么样的呢? 是在php.ini里面么? 我里面有 include_path=".;D:\Program Files\wamp\php\PEAR" 但是似乎不起作用
1用 include_path 修改php.ini,需要重启服务 2用set_include_path 或者ini_set.范例Example #1 set_include_path() example <?php // Works as of PHP 4.3.0 set_include_path('/inc');// Works in all PHP versions ini_set('include_path', '/inc'); ?> Example #2 Adding to the include path Making use of the PATH_SEPARATOR constant, it is possible to extend the include path regardless of the operating system. In this example we add /usr/lib/pear to the end of the existing include_path. <?php $path = '/usr/lib/pear'; set_include_path(get_include_path() . PATH_SEPARATOR . $path); ?>
我里面有 include_path=".;D:\Program Files\wamp\php\PEAR"
但是似乎不起作用
include_path
修改php.ini,需要重启服务
2用set_include_path 或者ini_set.范例Example #1 set_include_path() example
<?php
// Works as of PHP 4.3.0
set_include_path('/inc');// Works in all PHP versions
ini_set('include_path', '/inc');
?>
Example #2 Adding to the include path
Making use of the PATH_SEPARATOR constant, it is possible to extend the include path regardless of the operating system.
In this example we add /usr/lib/pear to the end of the existing include_path.
<?php
$path = '/usr/lib/pear';
set_include_path(get_include_path() . PATH_SEPARATOR . $path);
?>
2、在使用 HTML_Template_IT 类的文件中要有
require_once ‘HTML/Template/IT.php';
3、使用 HTML_Template_IT 类的文件可在网站的任何目录下,只要你自己能找到
Loaded Configuration File D:\Program Files\wamp\Apache2\bin\php.ini 然后那个Configuration File Path 怎么也修改不了。
我就把php.ini 放到C:\WINDOWS 下就可以了。请问有什么办法修改那个地址么?
我试过了环境变量里增加一个系统变量.