jb-data.de/sasocopy.php
2025-08-11 22:23:30 +02:00

53 lines
No EOL
1.8 KiB
PHP

<?php
error_reporting(E_ALL);
ini_set('display_errors',1);
require('lib/config.php');
require('lib/mysql.class.php');
$GLOBALS['mysql'] = new mysql(CONFIG_MYSQL_HOST,CONFIG_MYSQL_USER,CONFIG_MYSQL_PW,CONFIG_MYSQL_DB);
// $GLOBALS['rasql'] = new mysql(CONFIG_RASQL_HOST,CONFIG_RASQL_USER,CONFIG_RASQL_PW,CONFIG_RASQL_DB);
header("Content-Type: text/html; charset=utf-8");
//----------------------------------------------------------------------------------------------------------
//date_default_timezone_set('Europe/London');
date_default_timezone_set('Europe/Berlin');
$jahr = (int)date('Y');
$monat = (int)date('n');
$tag = (int)date('j');
$kw = (int)date('W');
//----------------------------------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------------------------
echo "<pre>"; print_r('-------------------------------'); echo "</pre>";
//----------------------------------------------------------------------------------------------------------
$scopy='https://ft-data.de/status_check.php';
$html = file_get_contents($scopy);
$jsonrow=json_decode($html, true);
echo "<pre>"; print_r($jsonrow); echo "</pre>";
echo "</br>";
echo 'Letzter Fehler: ', json_last_error_msg(), PHP_EOL, PHP_EOL;
//echo "<pre>"; print_r($html); echo "</pre>";
/*
for($i=1; $i < 60; $i++) {
print_r ('x:'.$html[$i]);
echo'<pre>'; print_r($html[$i]); echo'</pre>';
}
*/
//----------------------------------------------------------------------------------------------------------
echo "</br>"; echo"fertig_saso nummer copy";
?>