Home > php教程 > php手册 > PATH_SEPARATOR是什么

PATH_SEPARATOR是什么

WBOY
Release: 2016-06-13 10:36:11
Original
1623 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template