Heim  >  Artikel  >  Backend-Entwicklung  >  PATH_SEPARATOR是什么_PHP教程

PATH_SEPARATOR是什么_PHP教程

WBOY
WBOYOriginal
2016-07-13 17:37:22924Durchsuche

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

www.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...
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn