I want to make movement such as the tail command with PHP, but how may watch append to the file?
$handler = fopen('somefile.txt', 'r'); // move you at the end of file fseek($handler, filesize( )); // move you at the begining of file fseek($handler, 0);
And probably you will want to consider a use of stream_get_line