Append Code to the beginning of a large file
Posted: Tue May 19, 2009 1:44 pm
Hi Everyone:
I'm having a little trouble trying to append to the top of a file in PHP. I've seen examples where the content is copied, but I'm worried that if the file content gets too big I might run into memory issues.
I've tried rewinding and moving the cursor, but it always appends to the bottom.
Any help would be greatly appreciated.
Thanks
I'm having a little trouble trying to append to the top of a file in PHP. I've seen examples where the content is copied, but I'm worried that if the file content gets too big I might run into memory issues.
I've tried rewinding and moving the cursor, but it always appends to the bottom.
Any help would be greatly appreciated.
Thanks