Answer the question
In order to leave comments, you need to log in
How to restrict access?
Hello!
Tell me how (if possible) to restrict the user's access to all third-party directories except him?
There are 2 sites, here are their directories:
site1.ru /var/www/user1/www/site1.ru/
site2.ru /var/www/user2/www/site2.ru/
$files1 = scandir('/var/www/user2/www/site2.ru/');
print_r($files1);
$text = "Какой-то текст";
$fp = fopen("/var/www/user2/www/site2.ru/", "w");
fwrite($fp, $text);
fclose($fp);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question