January 9, 2011

PHP - Upload/Download FILE

Salam semua, apa khabar semua, hi semua... Jom belajar guna PHP macam mana nak upload file guna website sendiri dlm server kata kan... ho ho..

Code untuk upload file:
//$upload=$md5c;
$target_path = "upload/".$_FILES['uploadedfile']['name'];
//$target_path ="upload/".$upload.$_FILES['uploadedfile']['name'];
$target=$upload.$_FILES['uploadedfile']['name'];
move_uploaded_file($_FILES['uploadedfile']['tmp_name'],$target_path);


Gambar kat bawah gambaran upload/download file mengikut step-by-step..





Ni link untuk coding penuh untuk buat download/upload guna PHP.. Selamat mencuba... ho ho


rymie zala

No comments:

Post a Comment

LinkWithin

Related Posts Plugin for WordPress, Blogger...

Followers