Guest User

Untitled

a guest
Jan 19th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. <form action="" method="post" accept-charset="utf-8" enctype="multipart/form-data">
  2. <input type="file" name="file">
  3. <input type="submit" name="btn_submit" value="Upload File" />
  4.  
  5. <?php
  6. if(ISSET($_POST['btn_submit'])){
  7. $file = fopen($_FILES['file']['tmp_name'], 'r+');
  8.  
  9. while (($column = fgetcsv($file, 10000, ";")) !== FALSE) {
  10. print_r($column);die();
  11.  
  12.  
  13. }
  14.  
  15. }
  16.  
  17. ?>
Add Comment
Please, Sign In to add comment