Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form action="" method="post" accept-charset="utf-8" enctype="multipart/form-data">
- <input type="file" name="file">
- <input type="submit" name="btn_submit" value="Upload File" />
- <?php
- if(ISSET($_POST['btn_submit'])){
- $file = fopen($_FILES['file']['tmp_name'], 'r+');
- while (($column = fgetcsv($file, 10000, ";")) !== FALSE) {
- print_r($column);die();
- }
- }
- ?>
Add Comment
Please, Sign In to add comment