View Full Version : Writing to a file. (PHP)
Nasimov
03-30-2004, 10:02 AM
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.
Wizzard~Of~Ozz
10-10-2004, 11:53 PM
It would appear not, Random File Access is becoming un-supported.. a complete list is at the bottom of the page for what's available...
http://ca.php.net/manual/en/ref.filesystem.php
blaze
05-08-2005, 11:12 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.
It would be possible with a certain set up of a while loop, however it is slow and impractical. (But I have done it and it does work).
The idea is, that you would be using a database for any data that would have to have those functions asserted to it, I suppose.
-Blaze
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.