halo aku nyoba upload file dengan php dibawah ini, tapi kok gak berhasil
kenapa ya !, ada yang bisa tolongin gw gak !,...... aku pake windows, dengan
pws4 sebagai webservernya !
<html>
<head>
<title>Upload File</title>
</head>
<body>
<?
$lanjut=0;
switch($_FILES['userfile']
['error']){
Case 0:
echo "File berhasil diupload";
$lanjut=1;
break;
Case 1:
echo "File yang diupload melebihi";
echo "batas yang ditentukan";
break;
Case 2:
echo "File yang diupload melebihi";
echo "batas yang ditentukan";
break;
Case 3:
echo "Hanya sebagian file";
echo "yang berhsil diupload";
break;
Case 4:
echo "Tidak ada file yang diupload";
}
if($lanjut==1){
?>
<br>
Berikut adalah informasi dari file yang diupload:
<br>
Nama file : <?=$_FILES["userfile"] ["name"]?><br>
Tipe File : <?=$_FILES['userfile']['type']?><br>
Ukuran File : <?=$_FILES['userfile']['size']?>bytes.
<?
$upload_filename=
"c:\\upload\\".$_FILES['userfile']['name'];
copy($_FILES['userfile']['tmp_name'],$upload_filename);
}
?>
</body>
</html>
============================================================================
www.hamril.tk
Fax. 021 - 6914480
Telp.021 - 6909400 ext 633
============================================================================
--
Berhenti langganan: [EMAIL PROTECTED]
Arsip dan info: http://linux.or.id/milis.php