View file admin/createfileon.php
<? include("../head.html") ?> <?php $filename = $_POST['filename']; $zapis = $_POST['zapis']; $papka = $_POST['papka']; $h = fopen("../$papka/$filename","w"); $text = $zapis; if (fwrite($h,$text)) echo "Файл создан!"; else echo "Произошла ошибка при записи данных!"; fclose($h); ?> <? include("../copy.html") ?>