Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View


I'm wondering if there is a way to limit a certain chunk of
text to be put into the csv file (as shown below), like a way to
end the header.

The reason I ask is because I do get my csv files alright,
but there is a whole chunk of html that gets put into the file as well.

Thanks in advance

function export(&$arrdata,&$linkname='test',&$filename='test') {

header('Content-Type: application/csv');
header('Content-Disposition: attachment; filename=data.csv');

//echo $arrdata[0]["evaluatee"]["group_avg"][0];

//echo $arrdata[0]["numOfMembers"];

    echo $arrdata[0]['evaluatee'][$i]['last_name'] . "," .
$arrdata[0]['evaluatee'][$i]['last_name'] . "," .
$arrdata[0]['evaluatee'][$i]["average_grade"]. "\r";

Re: HeaderContent-Disposition

On 24 Feb 2005 15:24:28 -0800, bigoxygen@gmail.com wrote:

Quoted text here. Click to load it

 It'd help if you said what the "chunk of html" was.

Quoted text here. Click to load it

 It's probably PHP notices from your declaration here; you cannot use default
values for parameters declared as pass-by-reference unless you're using PHP5.


Quoted text here. Click to load it

<http://www.andyhsoftware.co.uk/space Space: disk usage analysis tool

Site Timeline