init
This commit is contained in:
commit
72a26edcff
22092 changed files with 2101903 additions and 0 deletions
33
ilo1.php
Normal file
33
ilo1.php
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
<?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>";
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue