SEOTRICK

Simple Bloging Script PHP & Tutorial

HOMEABOUTFACEBOOK
Cara Membuat Uploud File PHP Tanpa MySQL - WAPMASTER TUTORIAL DAN SCRIPT PHP

Home » Blog » Cara Membuat Uploud File PHP Tanpa MySQL

Category: Membuat Uploud File Ke Folder, Membuat uploud PHP, php, Script Uploud File, Script Uploud No Mysql, Trik Php Membuat Uploud File, Uploud form tanpa Mysql.
Membuat uploud PHP, Script Uploud File, Trik Php Membuat Uploud File

Assalamu 'allaikum
Met siank sekarang kita bahas Cara Membuat Uploud File (tanpa database mysql) sangat Cocok banget niech buat menambah menu dari login kemarin di artikel cara membuat Login PHP tanpa Mysql Dan Logout nah tak usah lama lagi ke pokok nya saja ikuti langkah berikut ini :D

Pertama Buat File baru di hostingan anda beri nama misal uploud.php lalu masukan kode berikut ini sob

<?php
//untuk proses uploud

if(isset($_POST['upload'])){
$dir ="files";
foreach ($_FILES['files']['name'] as $key => $val ) {
$name = $_FILES['files']['name'][$key];
$tmp = $_FILES['files']['tmp_name'][$key];
if(trim($name)!=''){
$new_name = "okatrick_".$name;
if(move_uploaded_file($tmp,''.$dir.'/'.$new_name )){
echo 'Berhasil mengupload file '.$new_name.' terimakasih'; }
else { echo'file gagal di uploud bro'; }
}
}
}
//letakan form uploud disini


Selesai Copy paste kode di atas sekarang pasang juga kode ini di bawah nya yaitu untuk menampilkan form uploud nya cekidot... :D

//menampilkan form uploud

echo'<b>Masukan File</b><br>

<form method="post" enctype="multipart/form-data" action="">
<input type= "file" name="files[]">
<br/> <input type="submit" name="upload" value="Upload" /></form>';

?>


Nah Selesai semoga bermanfaat mbah lihat hasil akhirnya disini DEMO
males nulis kode nya silahkan DOWNLOAD
jika ada pertanyaan silahkan hubungi saya di gustbook komentar atau di facebook saya ada di menu blogroll saya akhiri

wassalamu 'alaikum wr wb

Share On :
Share on facebook Share on google+

Comments: Cara Membuat Uploud File PHP Tanpa MySQL
WFCbUbWL
15 February 2015

When I was about 5, my older brother & I made a plan to wake up at 5 AM, which <a href="http://mywkrdis.com">beamce</a> a lasting tradition until we were out of the house. But that first year, we decided that we needed to let our parents sleep in, so we didn't wake them when we got up and started tearing into our presents. I guess our excitement woke them though because they were up before we finished unwrapping and oh boy, were we in trouble for not waking them up before we started unwrapping.Now that my nephews are about the ages we were then, THEY have started getting up at 5 AM to open presents. My 4-year-old only child hasn't caught on to that yet (and if her cousins ever tell her, I might have to kill them), which drives my brother insane when he is awake at 5 AM. So now he calls me every Christmas morning when his kids wake him up and tells (yells at...whatevs) me to get up too. My new tradition is to cuss him out and hang up on him.See? You're never to old to start new holiday traditions with your siblings. ;)

On : 1 0.0001 / sec
6 | 2204 | 4279324
©2014 okatrick.xtgem.com
Powered by XtGem

* . * * * * * * * * * * * * * * * * * * *
Polly po-cket