Home  >  Article  >  Backend Development  >  What is PATH_SEPARATOR_PHP Tutorial

What is PATH_SEPARATOR_PHP Tutorial

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

zendframework include settings index.php

set_include_path(. . PATH_SEPARATOR . ../library/ . PATH_SEPARATOR . ./application/models/

. PATH_SEPARATOR . ./application/lib/

. PATH_SEPARATOR . get_include_path());

PATH_SEPARATOR is a constant, which is a ":" sign on Linux systems and a ";" sign on Windows. Therefore, it is best to use the constant PATH_SEPARATOR instead when writing a program, otherwise errors will occur if the system is transplanted from Linux to Win system or vice versa!
get_include_path gets the current existing environment variables, plus the previous settings, it is the new system include

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/486564.htmlTechArticlezendframework include set index.php set_include_path(. . PATH_SEPARATOR . ../library/ . PATH_SEPARATOR . ./application/ models/ . PATH_SEPARATOR . ./application/lib/ . PATH_SEPAR...
Statement:
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