PHP Classes

File: csv.php

Recommend this page to a friend!
  Classes of Gobinath Mallaiyan   CSVReader   csv.php   Download  
File: csv.php
Role: Example script
Content type: text/plain
Description: Scripts which uses the class
Class: CSVReader
Parse and display uploaded CSV files
Author: By
Last change:
Date: 18 years ago
Size: 430 bytes
 

Contents

Class file image Download
<?php
include_once('csvImp.class.php');
$csv = new csvImp();
 if (isset(
$_GET['action'])){
    
$action=$_GET['action'];
     if(
$action = 'upload'){
          
$csv->fileUpload();
     }
     if(
$action = 'form'){?>
<form method="post" action="csv.php?action=upload" enctype="multipart/form-data">
         <input type="file" name="txtfile"><br>
         <input type="submit" name="Submit" value="Submit" />
         </form>
       <?php }
}
?>