时间:2021-07-01 10:21:17 帮助过:15人阅读
zendframework include 设置 index.php
set_include_path(. . PATH_SEPARATOR . ../library/ . PATH_SEPARATOR . ./application/models/
. PATH_SEPARATOR . ./application/lib/
. PATH_SEPARATOR . get_include_path());
PATH_SEPARATOR是一个常量,在Linux系统中是一个" : "号,Windows上是一个";"号。所以编写程序时最好用常量 PATH_SEPARATOR 代替,否则如果系统从linux移植到win系统或反过来移植会出错!
get_include_path取得当前已有的环境变量,加上前面的设置就是新的系统include
http://www.bkjia.com/PHPjc/486564.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/486564.htmlTechArticlezendframework include 设置 index.php set_include_path(. . PATH_SEPARATOR . ../library/ . PATH_SEPARATOR . ./application/models/ . PATH_SEPARATOR . ./application/lib/ . PATH_SEPAR...