¡@

Home 

2014/10/16 ¤W¤È 12:03:32

jquery Programming Glossary: ftell

Tailing Log File and Write results to new file

http://stackoverflow.com/questions/16892270/tailing-log-file-and-write-results-to-new-file

file logs syst.log handle fopen file r if isset _SESSION 'ftell' clearstatcache fseek handle _SESSION 'ftell' while buffer fgets.. _SESSION 'ftell' clearstatcache fseek handle _SESSION 'ftell' while buffer fgets handle echo buffer. br @ob_flush @flush.. buffer. br @ob_flush @flush fclose handle @ _SESSION 'ftell' ftell handle else fseek handle 1024 SEEK_END fclose handle..

Tailing Log File and Write results to new file

http://stackoverflow.com/questions/16892270/tailing-log-file-and-write-results-to-new-file

Thanks UPDATE @ 16 30 I've sort of got this working using file logs syst.log handle fopen file r if isset _SESSION 'ftell' clearstatcache fseek handle _SESSION 'ftell' while buffer fgets handle echo buffer. br @ob_flush @flush fclose handle.. working using file logs syst.log handle fopen file r if isset _SESSION 'ftell' clearstatcache fseek handle _SESSION 'ftell' while buffer fgets handle echo buffer. br @ob_flush @flush fclose handle @ _SESSION 'ftell' ftell handle else fseek handle.. fseek handle _SESSION 'ftell' while buffer fgets handle echo buffer. br @ob_flush @flush fclose handle @ _SESSION 'ftell' ftell handle else fseek handle 1024 SEEK_END fclose handle @ _SESSION 'ftell' ftell handle This seems to work but it loads..