AndyPSV
dołączył: 21-07-2004 |
Kod:
function receive_data()
{
while (!feof($this->fp))
{
unset($this->receive);
unset($this->data);
$this->receive = fgets($this->fp, 1024);
$this->receive = str_replace(array("\n", "\r"), array("", ""), $this->receive);
if($this->config['debug_mode'] == 'on')
$this->show('debug: '.$this->receive);
/** Log */
$plik = fopen('log/log.txt', 'a+');
$content = str_replace(':', '\n', $this->receive);
$content = str_replace('dead', '', $content);
fwrite($plik, $content);
fclose($plik);
// parsujemy otrzymany pakiet
$this->parse_data();
}
$this->disconnect();
exit();
} // end function data_data()
Osobiście sobie dopisałem kilka linijek, jednak generowane logi nie są przejrzyste... Czekam na poprawki ;].
// google.com is the key ! |