d2tools/test.php

29 lines
554 B
PHP

<?php
error_reporting(E_ERROR | E_PARSE);
set_time_limit(-1);
ini_set('max_input_time', '-1');
ini_set('max_execution_time', '0');
session_start();
ob_start();
require_once './config.php';
require_once './_pdo.php';
require_once "./src/D2Functions.php";
require_once './src/D2ItemData.php';
require_once './src/D2ItemDesc.php';
require_once './src/D2DocGenerator.php';
define('DB_FILE', "ironman-dev.db");
PDO_Connect("sqlite:" . DB_FILE);
$fp = fopen("x", "rb+");
fseek($fp, 0);
$y = fread($fp, 1);
fseek($fp, 4);
fwrite($fp, "__");
fclose($fp);