Hello semuanya... Aku punya problem nih aku sudah membuat script php untuk fungsi mengupload gambar atau file, tetapi kalau untuk mengupload file yang byte besar tidak mau, tetapi untuk yang bytenya kecil selalu bisa, databasenya sebagai berikut :
# # Table structure for table 'downloadpc' # CREATE TABLE downloadpc ( no int(4) NOT NULL auto_increment, kategori varchar(50) NOT NULL default '', keterangan text NOT NULL, filedown varchar(100) NOT NULL default '', PRIMARY KEY (no), KEY no (no,kategori) ) TYPE=MyISAM; Scritpnya aku buat 2 buah, script pertama untuk inputnya kemudian di post ke script ke 2 Script 1 (formdownadmin.php) <?php session_start(); include("../koneksi.inc.php"); if (!empty($namaadmin) and !empty($passadmin)) { ?> <html> <head> <title>Informasi Technology Service</title> <link href="css/tampilan.css" rel="stylesheet" type="text/css"> </head> <body> <div id="Layer1" style="position:absolute; left:30px; top:30px; width:500px; height:238px; z-index:1"> <div align="center"><span class="snavybluebesar">Input Download File </span> </div> <hr size="1" color="#336699"> <form name="frmFaq" method="post" action="simpandownadmin.php" enctype="multipart/form-data"> <table width="400" border="0" align="center" cellspacing="0"> <tr> <td width="92" class="snavyblue">Category</td> <td width="11"><div align="center" class="snavyblue">:</div></td> <td width="291"> <select name="kategori"> <?php $perintah="SELECT * FROM katgdownload"; $hasil=mysql_query($perintah); while ($data=mysql_fetch_array($hasil)) { echo("<option value=\"$data[kategori]\">$data[kategori]"); } ?> </select> <!--input name="kategori" type="text" size="50">--> </td> </tr> <tr> <td width="92" valign=top class="snavyblue">Description</td> <td valign=top width="11"><div align="center" class="snavyblue">:</div></td> <td width="291"> <textarea name="keterangan" cols=40 rows=5></textarea> </td> </tr> <tr> <td width="92" class="snavyblue">File</td> <td width="11"><div align="center" class="snavyblue">:</div></td> <td width="291"> <input name="filedown" type="file" size="35"> </td> </tr> <tr> <td> </td> <td> </td> <td> <input type="submit" value="Submit" name="BtnSubmit" > <input name="Reset" type="reset" id="Reset" value="Reset"></td> </tr> </table> <table width="100%" > <tr> <td><hr size="1" color="#336699"> <table width="100%" > <tr> <td><div align="right"><span class="snavyblue">[</span><a href="logout.php" target="_self" class="anavymerah">Logout</a><span class="snavyblue">] [</span><a href="menuadmin.php" target="_self" class="anavymerah">Back</a><span class="snavyblue">]</span></div></td> </tr> </table></td> </tr> </table> </form> </div> </table> </body> </html> <?php } else { echo("<TABLE BORDER=1 WIDTH=80% height=73% CELLSPACING=0 CELLPADDING=0 BGCOLOR=WHITESMOKE ALIGN=CENTER style='border-collapse: collapse'>"); echo("<TD>"); echo("<BR><BR><BR><BR><BR><BR><BR>"); echo("<CENTER>"); echo("<font face='verdana' size='1' color='#336699'>"); echo ("Sorry, To Access this web page you must LOGIN....!<BR><BR>"); echo ("[<A HREF='login.php' target=_self class='anavymerah'>Login</A>]"); echo("</font>"); echo("</CENTER>"); echo("<BR><BR><BR><BR><BR><BR>"); echo("</TD>"); echo("</TABLE>"); } ?> Kemudian dari Script 1 di POST Script ke 2 (simpandownadmin.php) <?php include("../koneksi.inc.php"); $perintah="INSERT INTO downloadpc(no,kategori,keterangan,filedown) VALUES ('$no','$kategori','$keterangan','$filedown_name')"; if (!empty($kategori) or !empty($keterangan)) { if (!empty($filedown)) { if (!move_uploaded_file($filedown,"down/$filedown_name")) { echo("<br><br><br><br><br><br>"); echo("<center>"); echo("<p class=snavyblue>"); echo("Process Upload File not success"); echo("<br><br>[<a href=formdownadmin.php target=_self class='anavymerah'>Back</a>]</p>"); echo("</center>"); exit(); } $isi_data=mysql_query($perintah); } else { echo("<p class=snavyblue>"); echo("Entry is not complete.....</p>"); } } if ($isi_data) { include "formdownadmin.php"; } else { echo("<br><br><br><br><br><br>"); echo("<center>"); echo("<p class=snavyblue>"); echo("File is not Upload..try again<br><br><br>"); echo("<br>[<a href=formdownadmin.php target=_self class='anavymerah'>Back</a>]</p>"); echo("</center>"); } ?> Mohon Solusinya.... Thank's G_thuk __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail -- Berhenti langganan: [EMAIL PROTECTED] Arsip dan info: http://linux.or.id/milis.php