![]() |
|
upload file PHP - Printable Version +- HN-Community (https://hacker-newbie.org) +-- Forum: Miscellaneous (https://hacker-newbie.org/forum-86.html) +--- Forum: Coding/Programing (https://hacker-newbie.org/forum-19.html) +---- Forum: Web Programing (https://hacker-newbie.org/forum-38.html) +---- Thread: upload file PHP (/thread-15855.html) Pages:
1
2
|
RE: upload file PHP - tonihoshi - 01-01-2013 Pakai hostingan gratisan aja coba di idhostinger.om Terus masuk ke file managare.nya. Pakai file managare 3 aja. Klik publik html. Uplod deh file'mu. Ane ol via handphone. Jadi cuman bs bantu gini ajja
RE: upload file PHP - Jheny - 01-24-2013 (12-17-2012, 07:39 AM)nesta Wrote: me masih gak mudeng maksud TS ini minta tolong ato show op wahahahahahahahaha RE: upload file PHP - positive - 01-24-2013 hahahahahhahahahaahhahaha , RE: upload file PHP - amii-adjah - 01-25-2013 yahh brother2 jgn cuma ketawain aja dong. ![]() HN kan forum yang ramah ![]()
RE: upload file PHP - Dika_xb - 03-29-2013 karna ini di thread web programming jadi aku pikir TS nya nanya cara upload file menggunakan php PHP Code: <form action='' enctype="multipart/form-data" method='POST'>
<input type='file' name='namaFile'>
<input type='submit' value='kirim file'>
</form>
<?php
$path = "D:/"; //simpan file di directory D:/
$baseName = basename( $_FILES['namaFile']['name']); //nama file
$pathTarget= $path.$baseName; //menggabungkan nama path dan basename file
if(move_uploaded_file($_FILES['namaFile']['tmp_name'], $pathTarget)) { //pindahkan file
echo "upload file sukses.";
} else{
echo "error upload";
}
?> |