A
A
Alexander Shapoval2017-06-09 23:35:51
linux
Alexander Shapoval, 2017-06-09 23:35:51

How to create a directory with read and write permissions in php on linux?

Create directory in php

mkdir('test');
mkdir('test', 777);
mkdir('test', 0777);

all three methods create a directory with which nothing can be done because access rights do not allow, I write through the terminal
chmod -R 777 test
only then access is opened

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Sobko, 2017-06-09
@sanek_os9

You should at least occasionally read the comments section of the function you are using :)
Everything has been invented for you a long time ago

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question