HEX
Server: Apache
System: Linux sg241.singhost.net 2.6.32-896.16.1.lve1.4.51.el6.x86_64 #1 SMP Wed Jan 17 13:19:23 EST 2018 x86_64
User: honghock (909)
PHP: 8.0.30
Disabled: passthru,system,shell_exec,show_source,exec,popen,proc_open
Upload Files
File: //opt/cloudlinux/alt-php54/root/usr/share/pear/test/File_CSV/tests/parser.php
<?php
error_reporting(1803);
require_once 'File/CSV.php';

/*/Example conf:
$conf = array(
    'fields' => 4,
    'sep'    => "\t",
    'quote'  => '"',
    'header' => false
);
//*/
ob_implicit_flush(true);
$argv = $_SERVER['argv'];
$file = $argv[1];
$write = (isset($argv[2])) ? $argv[2] : false;
PEAR::setErrorHandling(PEAR_ERROR_PRINT, "warning: %s\n");

$conf = File_CSV::discoverFormat($file);
while ($fields = File_CSV::read($file, $conf)) {
    if ($write) {
        File_CSV::write($write, $fields, $conf);
    }
    print_r($fields);
}

var_dump($conf);
echo "\n"

?>