|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-04-21 16:28 UTC] felipe@php.net
-Status: Open
+Status: Bogus
[2010-04-21 16:28 UTC] felipe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 01 06:00:01 2025 UTC |
Description: ------------ $handle = open('test.csv','r+'); fputcsv($handle,$content); overwrite the last already in the file standing line. If i write this, the last line is not overwritten: $handle = open('test.csv','r+'); while($current = fgetcsv(handle)) { //Nothing } fputcsv($handle,$content); Test script: --------------- //Does not work $handle = open('test.csv','r+'); fputcsv($handle,$content); //Work $handle = open('test.csv','r+'); while($current = fgetcsv(handle)) { //Nothing } fputcsv($handle,$content);