For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > November 2006 > Re: [PEAR] Datagrid Renderer csv and automatic file saving









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] Datagrid Renderer csv and automatic file saving
David Sanders

2006-11-27, 9:58 pm

>
> $renderOptions = array(
> 'buildHeader' => false,
> 'filename' => time().'_'.$finished_id.'.csv'
> );
> $csv = $datagrid->render(DATAGRID_RENDER_CSV, $renderOptions);


file_put_contents('/web/folder/file.csv',$csv);
Köteles Zoltán

2006-11-28, 7:59 am

David Sanders írta:
>
> file_put_contents('/web/folder/file.csv',$csv);
>

Thanks a lot. The cvs version is working perfectly.

ZoTyA
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com