![](/img/trans.png)
[英]PHP wrong folder ? include_path='.:/usr/share/php:/usr/share/pear'
[英]In resin, using PHP the include_path directive is defaulted to /usr/share/php , even though I changed it?
這是我在php.ini中添加的行
include_path = "/usr/share/php/smarty:/usr/share/php5:/usr/share/php:/usr/share/php/pear"
我沒有echo "Include Path: ". get_include_path();
echo "Include Path: ". get_include_path();
這是輸出
Include Path: .:/usr/share/php
我使用正確的php.ini的phpinfo()
確認了它,但是未更新路徑。
ed1:我什至將路徑簡化為2條路徑,但仍然沒有更新。 (我也每次都重新啟動樹脂)
ed2:絕對正確的文件,例如,如果我更改其他設置並執行echo ini_get('display_errors')
,我可以看到它已更改。 那么,包含路徑是怎么回事?
ed3:為確保它不是格式錯誤的uri或其他內容,我只使用了1條路徑,但仍然無法使用。
謝謝,
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.