Answer the question
In order to leave comments, you need to log in
Protect neighboring sites from the site. How?
There is nginx+phpfpm
There is a directory /var/www
In it:
site1.ru
site2.ru
site3.ru
All three sites are mine and no one except me works with them.
A friend asked me to host his site:
site4.ru
on my server, but
this script works with a bang site4.ru/index.php:
<?php
$fp = fopen("../../site1.ru/htdocs/test.txt", "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