![]() |
exporting data to csv
currently i have a script that exports to csv file from mysql but it seems as there are more rows of data, the script kind of stops working...
current i'm using this function: PHP Code:
|
Firstly, there's a time limit on execution. Maybe one of the others remember what to set to a long time period.
Also, you should do an unbuffered query, which will speed things up. This way you just grab results until a null/false is returned and echo out the row. It'll be a good bit faster with 50k rows. |
If you're using PHP 5.1+, then you might find the function fputcsv() useful for generating csv files =)
|
| All times are GMT. The time now is 12:42 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0