Script to upload files and merge their content.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: Script to upload files and merge their content.

Post by Eran »

Did you try mmj's solution?

Code: Select all

$result = file_put_contents($uploadfile, file_get_contents($newfile), FILE_APPEND);
And also my suggestion?
You can remove it by specifying the number of bytes you want to read from the old file
mmj
Forum Contributor
Posts: 118
Joined: Fri Oct 31, 2008 4:00 pm

Re: Script to upload files and merge their content.

Post by mmj »

bugmenot wrote:That was all.
So you got it fixed?
Post Reply