Discussion: concatenate files?
Afficher un message
Vieux 20/01/2008, 21h27   #2
Jerry Stuckle
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: concatenate files?

Bint wrote:
> is there any way to concatenate files in PHP?
>
> thanks
> B
>
>
>


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.
jstucklex@attglobal.net
==================

  Réponse avec citation
 
Page generated in 0,04395 seconds with 9 queries