Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
cachehist.conn.php 476 B
<?php

    set_time_limit(0);
    ini_set('memory_limit', '6G');
    ini_set('error_reporting', E_ALL);
    ini_set('display_errors', true);

    $elemId = $_GET["elemId"];

    $week = date( strtotime('-7 days') );
    //echo $week;
    $data = "";

    for ($i = $week; $i < date(strtotime('-3 days')); $i+=86400) {
        $json = file_get_contents('http://epdtdi-vm-01.cern.ch:5000/day/'. date('Y-m-d', $i) .'/'.$elemId);
        $data .= $json;
    }

    echo $data;

?>