Silahkan Cari yang anda inginkan

Wednesday 24 July 2013

25. move_uploaded_file

Fungsi: Memindahkan file yang diupload ke lokasi baru
Sintaks:
move_uploaded_file ( string $filename , string $destination )
Contoh :
Upload multiple file
<?php
$uploads_dir = '/uploads';
foreach ($_FILES["pictures"]["error"] as $key => $error) {
    if ($error == UPLOAD_ERR_OK) {
        $tmp_name = $_FILES["pictures"]["tmp_name"][$key];
        $name = $_FILES["pictures"]["name"][$key];
        move_uploaded_file($tmp_name, "$uploads_dir/$name");
    }
}
?>

No comments :

Post a Comment

Silahkan berkomentar dengan baik dan sopan, komentar anda berharga bagi saya...oke browww

No comments :

Post a Comment

Silahkan berkomentar dengan baik dan sopan, komentar anda berharga bagi saya...oke browww

SMKN 1 BOJONGPICUNGSMKN 1 BOJONGPICUNGSMKN 1 BOJONGPICUNGSMKN 1 BOJONGPICUNGSMKN 1 BOJONGPICUNGSMKN 1 BOJONGPICUNGSMKN 1 BOJONGPICUNGSMKN 1 BOJONGPICUNGSMKN 1 BOJONGPICUNGSMKN 1 BOJONGPICUNGSMKN 1 BOJONGPICUNGSMKN 1 BOJONGPICUNGSMKN 1 BOJONGPICUNGSMKN 1 BOJONGPICUNGSMKN 1 BOJONGPICUNGSMKN 1 BOJONGPICUNGSMKN 1 BOJONGPICUNGSMKN 1 BOJONGPICUNGSMKN 1 BOJONGPICUNGSMKN 1 BOJONGPICUNGSMKN 1 BOJONGPICUNG