Warning: main() [function.include]: Failed opening 'inc/auth.php' for inclusion (include_path='.:/usr/local/lib/php')
遇到这样的问题现在有个办法就是修改php.ini的include path参数,如果php.ini不受自己的控制,比如虚拟主机上,那有什么办法呢?
现在想到的一个办法就是在脚本里面修改include path,比如:
<?php
// Works as of PHP 4.3.0
set_include_path('/inc');
// Works in all PHP versions
ini_set('include_path', '/inc');
?>
具体效果如何还不知道,准备晚上回去试一下看。
0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.