Disable Query Monitor output from CSV export
-
Hey there,
We have some code which exports a CSV, this is done using an array of the CSV data:
ob_clean(); header('Content-type: application/csv'); $fopen1 = 'php'; $fopen2 = '://'; $fopen3 = 'output'; $file = fopen( $fopen1 . $fopen2 . $fopen3, 'w' ); foreach ( $csv_rows as $line ) { fputcsv( $file, $line ); } fclose( $file ); exit;
When Query Monitor is enabled the bottom of the CSV downloaded includes all of Query Monitor’s HTML output starting with <!– Begin Query Monitor output –>
Is there a way to disable this for this particular scenario?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Disable Query Monitor output from CSV export’ is closed to new replies.