L
L
luckyjenro02021-08-03 19:01:18
PHP
luckyjenro0, 2021-08-03 19:01:18

Why does PATH_SEPARATOR output ':' instead of '/'?

get_include_path() . PATH_SEPARATOR . "Application" . PATH_SEPARATOR . "AppControllers" on OPENSERVER gave the correct empty, now instead of '/' for some reason it goes ':', that is,

/usr/share/php:Application:AppControllers

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
BoShurik, 2021-08-03
@luckyjenro0

https://www.php.net/manual/ru/dir.constants.php
You are confusing PATH_SEPARATOR(the one in the environment variable PATH) andDIRECTORY_SEPARATOR

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question