halo selamat pagi semua !, saya mo nanya nich , aku bikin script untuk
upload file sbb:
nama file : upload.htm
<html>
<head>
<title>Pic Uploader</title>
</head>
<body>
<h1>Pic Uploader</h1>
<form enctype="multipart/form-data" method="POST"
action="upload.php">
<p>Nama anda&nbsp; : <input type="text"
name="nama">&nbsp;&nbsp; </p>
<p>Masukkan foto anda&nbsp; : <input type="file"
name="pic">&nbsp;&nbsp; </p>
Komentar : <br><TEXTAREA ROWS=5 COLS=40
name="comment"></TEXTAREA>
<p><input type="submit" value="Submit" name="B1"></p>
</form>
</body>
</html>

script upload.php sbb:
<?
// -- Upload File -- //
// info tentang file user :
echo("Nama File User = $pic_name <br>");
echo("Nama File User di server= $pic <br>");
echo("Ukuran File User = $pic_size <br>");
echo("Jenis File User = $pic_type <br>");
// menulis file pic ke harddisk server
$oldmask = umask(0);
mkdir("upload/$nama", 0777);
umask($oldmask);
$fileGambar = "upload/$nama/$pic_name";
copy($pic, $fileGambar);
// menulis file comment ke file
$fileComment = "upload/$nama/$pic_name-comment.txt";
$fp = fopen($fileComment, "w");
fwrite($fp, $comment);
fclose($fp);
// -- Menampilkan isi folder -- //
$myDir = "upload/$nama";
$dir = opendir($myDir);
echo("<hr>Isi folder upload/$nama : <br>");
while($tmp = readdir($dir)){
echo($tmp."<br>");
}
closedir($dir);
// -- menampilkan pic yang telah diupload -- //
echo("<hr>Pic $nama : <br>");
echo("<img src=\"$fileGambar\" border=0 width=100
height=100>");
// -- menampilkan isi file text --//
echo("<hr>Komentar : <br>");
$f = fopen($fileComment, "r");
$isi = fread($f, filesize($fileComment));
fclose($f);
$output = htmlspecialchars($isi);
echo($output);
?>

tapi gw bingung kok variabelnya gak kebaca,  kok gak nongol ya !  hasilnya
spp dibawah ini :

Nama File User =
Nama File User di server=
Ukuran File User =
Jenis File User =

----------------------------------------------------------------------------
----
Isi folder upload/ :
.
..
-comment.txt

----------------------------------------------------------------------------
----
Pic :

----------------------------------------------------------------------------
----
Komentar :


Terimakasih ya klo ada yg bisa bantuin !


============================================================================
===================
www.hamril.tk
Fax. 021 - 6914480
Telp.021 - 6909400 ext 633
============================================================================
===================


-- 
Unsubscribe: kirim email kosong ke [EMAIL PROTECTED]
Arsip dan info di http://linux.or.id/milis.php

Kirim email ke