Location: PHPKode > scripts > Data Generator Script > generatedata-3.0.0/generate.php
<?php

require_once(realpath(dirname(__FILE__) . "/library.php"));

Core::init("generation");
$gen = new Generator($_POST);
$response = $gen->generate();

if ($gen->getExportTarget() == "promptDownload") {
	header("Cache-Control: private, no-cache, must-revalidate");
	header("Content-Type: {$response["contentTypeHeader"]}");
}

if (isset($response["promptDownloadFilename"]) && !empty($response["promptDownloadFilename"])) {
	header("Content-Disposition: attachment; filename={$response["promptDownloadFilename"]}");
}

echo $response["content"];
Return current item: Data Generator Script