我正在使用 Awardspace.com 进行免费网站托管。有谁知道如何更改包含路径以便我可以使用 PEARpager.php
包?
目前我的脚本有:
include_once 'pager/Pager.php';
虽然 Awardspace 上 Unix 服务器上的包含路径说:
include_path .:/usr/local/php5/share/pear
您是否检查过或浏览过http://pear.php.net/manual/en/package.html.pager.php上的文档?什么似乎是实际问题?少一点模糊会有所帮助!
set_include_path()
应该管用。
要将另一条路径附加到现有路径:
<?php
$path = '/path/to/mydir';
set_include_path(get_include_path() . PATH_SEPARATOR . $path);