download xml. * * * */ require_once 'Pman.php'; class Pman_Core_JsonToExcel extends Pman { function getAuth() { $au = $this->getAuthUser(); if (!$au) { die("NOT authenticated"); } $this->authUser = $au; return true; } function get() { $this->jerr("invalid get"); } function post($fname) { $ml = (int) ini_get('suhosin.post.max_value_length'); if (empty($_POST['_json'])) { header("HTTP/1.0 400 Internal Server Error"); die( $ml ? "Suhosin Patch enabled - try and disable it!!!" : 'no JSON sent'); } if (empty($_POST['_json'])) { header("HTTP/1.0 400 Internal Server Error"); die("Missing json attribute"); } $_json = $_POST['_json']; $worksheet = $workbook->addWorksheet("Sheet 1"); if (is_a($worksheet, 'PEAR_Error')) { die($worksheet->toString()); } //print_R($worksheet); $worksheet->setInputEncoding('UTF-8'); } }