Home > Backend Development > PHP Tutorial > What is PATH_SEPARATOR_PHP Tutorial

What is PATH_SEPARATOR_PHP Tutorial

WBOY
Release: 2016-07-13 17:37:22
Original
984 people have browsed it

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...
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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template