33 lines
No EOL
1.2 KiB
PHP
33 lines
No EOL
1.2 KiB
PHP
<?php
|
|
error_reporting(E_ALL); ini_set('display_errors',1);
|
|
$kw_aktuell = (int)date('W');
|
|
$jahr = (int)date('Y');
|
|
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);
|
|
mysqli_set_charset($mysql, 'utf8');
|
|
|
|
header("Content-Type: text/html; charset=utf-8");
|
|
//----------------------------------------------------------------------------------------------------------------
|
|
$url='https://api.ilonexs.de/php/schnittstellen_url.php?api=MbL~9X2kZU~&schnittstelle=1&';
|
|
//----------------------------------------------------------------------------------------------------------------
|
|
|
|
$row = 1;
|
|
if (($handle = fopen("ilo1.csv", "r")) !== FALSE) {
|
|
while (($data = fgetcsv($handle, 1000, ";")) !== FALSE) {
|
|
$num = count($data);
|
|
echo "<p> $num fields in line $row: <br /></p>\n";
|
|
$row++;
|
|
for ($c=0; $c < $num; $c++) {
|
|
//echo $data[$c] . "<br />\n";
|
|
echo $data[0]."<br />\n";
|
|
}
|
|
}
|
|
fclose($handle);
|
|
}
|
|
|
|
//----------------------------------------------------------------------------------------------------------------
|
|
|
|
echo "<pre>"; print_r($array); echo "</pre>";
|
|
|
|
?>
|