View Full Version : Writing to a file. (PHP)
Nasimov
04-30-2004, 01:31 PM
It's possible to ammend data within a file vs. just adding data to the beginning or the end of the file? Mean to change something in the "middle" of the file.
Thanks.
way2real
04-30-2004, 03:03 PM
Yes it is possible to do both.
Editing info in the middle of a file is somewhat complicated. You have to read the file into an array, loop through the array and locate the desired record, change the record, output the array to a file.
See www.php.net for more info.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.