|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-09-05 12:08 UTC] Keisial at gmail dot com
[2009-09-05 16:19 UTC] willgriffiths1 at yahoo dot co dot uk
[2009-09-05 22:32 UTC] auroraeosrose@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 08:00:01 2025 UTC |
Description: ------------ I put PHP 5.3 because it made me pick a version. I'm actually using PHP-GTK2. The function in the example given echos the 'date' and the 'filesize' every 3 seconds. However, while the date updates correctly (+3 seconds each time), the filesize stays the same even if you increase the size of the file. Is this expected behaviour? Reproduce code: --------------- Gtk::timeout_add(3000, 'update', $store); function update($store) { $offset = filesize('file.txt') - 100; echo $offset." ".date('H:i:s')."\r\n"; } Expected result: ---------------- 195382 11:18:06 195387 11:18:09 195399 11:18:12 ... Actual result: -------------- 195380 11:18:06 195380 11:18:09 195380 11:18:12 ...