On Mon, Feb 18, 2002 at 01:12:54PM +0000, Jenny_Hopkins@toby-churchill.com wrote:
Can anyone help me with a bit of php? I need to append the copntents of one file on to another when a web page is accessed. Cron is no use as the timing isn't fixed. I can append a line of text so far, but not the contents of a file, and as I'm away for the rest of the week and have been doing this manually till I find the fix, I'm panicking! - - help! Cheers, Jenny.
Hrm, can't you open both files, concat them in memory, or to a seperate file, and then splat it to theright place? is it just printing the contents of the 2 files, in essence?
if so:
$bigfile = join(file("filename1"), file("filename2")); print $bigfile;
That make sense? (sorry, had to look that up, so not tested at all ;)
Cheers,
Brett