2 ////////////////////////////////////////////////////////////////////////////////
4 // File: exportToCVS.php
5 // Description: Exports a table to CVS
6 // Author: Andrew@ClearSCm.com
7 // Created: Mon Apr 28 15:20:06 MST 2008
11 // (c) Copyright 2000-2008, General Dynamics, all rights reserved.
13 ////////////////////////////////////////////////////////////////////////////////
14 function exportToCSV ($filename, $data) {
15 header ("Content-Type: application/octect-stream");
16 header ("Content-Disposition: attachment; filename=$filename");
18 foreach ($data as $line) {
19 foreach ($line as $key => $value) {