首頁  >  文章  >  後端開發  >  get_include_path()是什么意思?该如何处理

get_include_path()是什么意思?该如何处理

WBOY
WBOY原創
2016-06-13 10:34:331082瀏覽

get_include_path()是什么意思?
这段代码 set_include_path(INCLUDE_PATH . PATH_SEPARATOR . get_include_path());

我百度了下说是可以对include和require的路径范围进行限定
但是我echo get_include_path(); 输出的是F:\AppServ\www\iwb/application/;.;C:\php5\pear
后面的;.;C:\php5\pear算是什么啊?

------解决方案--------------------
paer是PHP的库,这个库提供了很多现成的封装对象,类似Javascript的JQuery。当你要使用这个库时,就可以把库文件放在C:\php5\pear,而不用放在网站目录里。
------解决方案--------------------
get_include_path 函数返回当前 php 的搜索路径(通常就是 php.ini 中的 include_path)

当没有另外设置 include_path 时, php 默认 include_path 为 .;C:\php5\pear(window系统中)

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn