G
G
gruzdkov-a2016-10-14 20:23:41
PHP
gruzdkov-a, 2016-10-14 20:23:41

How to change the root directory for php scripts?

Good day.
There is a small site in PHP (OS - Ubuntu Server, Apache 2.4).
When executing a command from any script, php gives a list of all root folders (root, var, home, etc.) How can I make php consider the folder that I specify as the root?
scandir('/');

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DevMan, 2016-10-14
@gruzdkov-a

chroot
php.net/manual/ru/ini.core.php#ini.open-basedir

G
Garegin Kazaryan, 2016-11-18
@garka

First, make sure it sees all files. Write right after src:
gulp.src(scriptPaths)
.on('data', function(file){ console.log(file);})
.pipe(concat('script.js'))
Try removing gulp-concat and put on a new one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question