|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2003-03-01 16:07 UTC] henrik dot gebauer at web dot de
  [2003-03-01 16:20 UTC] henrik dot gebauer at web dot de
  [2003-03-01 18:55 UTC] wez@php.net
  [2003-03-02 05:49 UTC] henrik dot gebauer at web dot de
  [2003-03-03 09:34 UTC] iliaa@php.net
  [2003-03-04 10:27 UTC] sniper@php.net
  [2003-03-04 16:06 UTC] henrik dot gebauer at web dot de
  [2003-03-04 19:29 UTC] sniper@php.net
  [2003-03-05 07:48 UTC] henrik dot gebauer at web dot de
  [2003-03-05 12:34 UTC] sniper@php.net
  [2003-03-05 14:04 UTC] henrik dot gebauer at web dot de
  [2003-03-09 18:40 UTC] moriyoshi@php.net
  [2003-03-13 16:09 UTC] henrik dot gebauer at web dot de
  [2003-05-11 08:30 UTC] moriyoshi@php.net
  [2003-07-11 00:01 UTC] sniper@php.net
 | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 22:00:01 2025 UTC | 
New line chars seem not to count any longer. The following example writes 6 new lines in a file, then 20 chars. 'test' should be placed after the last '9' but it is placed after the last '3' (6 characters earlier as there are 6 new line chars) I didn't have the problem with earlier versions of PHP. <?php $fp = fopen('file.txt', 'w'); fwrite($fp,"\n\n\n\n\n\n01234567890123456789"); fwrite($fp, 'test'); fclose($fp); readfile('file.txt'); ?>