Using PHP to write a file
This is pretty much my first time using fwrite() in php. Basically I'm writing a list from an array to the page but it overwrites the material over the old. I need it to add the new material at the end of the previous material so that both the old and the new are both on the page.
From the manuals and tutorials etc it looks like the only way to do this is to fread() the file first, add the new material from the array to the original, and save it. Is that what I need to do? Is there a better way? Seems awfully inefficient. Thanks
Last edited by RESynergy; 06-10-2007 at 11:04 PM.
|