revision 8f443328525922b06eb498952b3d3c1c9d6b0917
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/usr/bin/env php <?php $file = $argv[1]; if (!file_exists($file)) { echo "File does not exist\n"; exit(1); } $hdl = fopen($file, 'r'); while ($row = fgetcsv($hdl)) { echo '|' . implode(' | ', $row) . "|\n"; } ?>