View Full Version : Choose append point in PHP

11-04-2007, 03:20 AM
Okay, I'm learning PHP and I've checked out some tuts online and I have one quick question: Is it possible (and if so how) to choose the point at which you append data into a file?
Particularly in XML. << I don't think that makes a difference, though

this is not an important question, so ignore it if your busy

11-04-2007, 02:00 PM
fopen() and fwrite() only allow you to write to the start or end of a file, you can write to a file stream ut its easier said than done, usually you would load the file contents, parse then resave.

11-10-2007, 02:40 PM
fseek() i think moves the file pointer, but thats okay, i dont need to do this anymore. Just a reference for anyone else who does!