Skip to content

Instantly share code, notes, and snippets.

@elizoller
elizoller / ezpaarse_curl.php
Created November 6, 2015 21:10
ezpaarse curl script. change $file to your local log file that you want to test and change $output_file to the file you want to output the tsv to
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
$file = 'logsamples/ezp20150911.log';
$format = 'text/tab-separated-values'; //application/json //json format removing output fields does not work so we will stick with tsv for now
$output_file = 'ezp20150911.tsv';//text.json