hi ihr.
wie kann ich die neuste zeile aus einer textdatei lesen ?
hier mal mein script:
PHP-Code:
set_time_limit(0);
$idx = "0";
$file = "chatlog.txt";
$array = file($file);
while(!connection_aborted()) {
if(count($array) == $idx+1) {
}
else {
sleep(0.5);
}
}
wisst ihr was ich meine, wenn nicht nochmal fragen
Gruss, Paul