PHP Indonesia - Facebook | PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ | |
 | Manage your social media
Best social media tool for image publishing to Facebook and Twitter. Look amazing and delight your followers. Get 40% off when you sign up today.  | From our sponsors | | |
gan Bagi Script File Upload & Download Pliss Oct 4th 2013, 07:19, by Hendi Nasution | gan Bagi Script File Upload & Download Pliss |
| | cara upload <?php $bt=date('Ym'); if(isset($_FILES['files'])){ $errors= array(); foreach($_FILES['files']['tmp_name'] as $key => $tmp_name ){ $file_name = $_FILES['files']['name'][$key]; $desired_dir="gambar/".$bt; if(empty($errors)==true){ if(is_dir($desired_dir)==false){ mkdir("$desired_dir", 0700); // Create directory if it does not exist } if(is_dir("$desired_dir/".$file_name)==false){ move_uploaded_file($file_tmp,"$desired_dir/".$file_name); }else{ // rename the file if another one exist $new_dir="$desired_dir/".$file_name.time(); rename($file_tmp,$new_dir) ; } //mysql_query($query); }else{ print_r($errors); } } if(empty($error)){ echo "Data Sudah di Upload";
} } ?>
<form action="" method="POST" enctype="multipart/form-data"> <input type="file" name="files[]" multiple/> <input name="Upload" type="submit" id="Upload"/> </form> |
| | yg kaya gene ga n |
| | http://bogor-webs.com/ |
| | keren | | |
|
Tidak ada komentar:
Posting Komentar