Code: Alles auswählen
<?php
$files = glob("./store/league*.xml");
var_dump($files);
?>
Wenn dann bool(false) ausgegeben wird, klappt der glob-Aufruf nicht.
Dann mal mit "./*.*" testen, ob es am Verzeichnis liegt oder an php.
Code: Alles auswählen
<?php
$files = glob("./store/league*.xml");
var_dump($files);
?>
Code: Alles auswählen
//Matchdays to close in 24 hours and 9 hours later
$local_board_time = time() + (($config['board_timezone'] - $config['football_host_timezone']) * 3600);
$sql = 'SELECT
m.*,
l.*
FROM ' . FOOTB_MATCHDAYS . ' AS m
LEFT JOIN ' . FOOTB_LEAGUES . " AS l ON (l.season = m.season AND l.league = m.league)
WHERE m.season = $season AND m.status = 0
AND (DATE_SUB(m.delivery_date, INTERVAL '1 9:00' DAY_MINUTE) < FROM_UNIXTIME('$local_board_time'))
AND (DATE_SUB(m.delivery_date, INTERVAL '1 00:01' DAY_MINUTE) > FROM_UNIXTIME('$local_board_time'))";
Hi football,football hat geschrieben:Vielleicht hilft dir auch folgendes Script bei der Fehlersuche:einfach als test.php in dein root-Verzeichnis kopieren und aufrufen.Code: Alles auswählen
<?php $files = glob("./store/league*.xml"); var_dump($files); ?>
Wenn dann bool(false) ausgegeben wird, klappt der glob-Aufruf nicht.
Dann mal mit "./*.*" testen, ob es am Verzeichnis liegt oder an php.
Code: Alles auswählen
array(1) { [0]=> string(26) "./store/league_2011_70.xml" }
Code: Alles auswählen
$files = glob($phpbb_root_path . "\store\league*.xml");
Code: Alles auswählen
$files = glob($phpbb_root_path . "./store/league*.xml");
Code: Alles auswählen
AND (DATE_SUB(m.delivery_date, INTERVAL '2 1:00' DAY_MINUTE) < FROM_UNIXTIME('$local_board_time'))
AND (DATE_SUB(m.delivery_date, INTERVAL '1 23:00' DAY_MINUTE) > FROM_UNIXTIME('$local_board_time'))";
Code: Alles auswählen
AND (DATE_SUB(m.delivery_date, INTERVAL '2 1:00' DAY_MINUTE) < FROM_UNIXTIME('$local_board_time'))
AND (DATE_SUB(m.delivery_date, INTERVAL '0 23:00' DAY_MINUTE) > FROM_UNIXTIME('$local_board_time'))";
Code: Alles auswählen
AND (DATE_SUB(m.delivery_date, INTERVAL '2 9:00' DAY_MINUTE) < FROM_UNIXTIME('$local_board_time'))
AND (DATE_SUB(m.delivery_date, INTERVAL '0 23:59' DAY_MINUTE) > FROM_UNIXTIME('$local_board_time'))";
Code: Alles auswählen
INTERVAL '2
Code: Alles auswählen
INTERVAL '2 9:00
Was startest Du? Dein Auto? Zur Arbeit?Ich starte immer um 13Uhr