concatenate files?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
is there any way to concatenate files in PHP?


Re: concatenate files?

Bint wrote:
Quoted text here. Click to load it

Please clarify what you're asking.  Are you wanting to concatenate two  
files on disk? If so, you can open one for reading and one for append.  
Then read the first in, writing to the second as you go.

Or, better yet, open a new file for writing.  Open the first file for  
reading and write it to the new file.  Then open the second input file  
for reading and write to the new file.

Of course there are other ways to do it, also - i.e. using system functions.

Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.

Re: concatenate files?

Quoted text here. Click to load it

fopen and use the "a" mode.  

Site Timeline