View Single Post
Old 10-31-2004, 01:23 PM  
EscortDate_Enoj
Registered User
 
Join Date: Mar 2002
Location: Norway
Posts: 87
Something like this ..

PHP Code:
<?php

$url1 
'http://domain.com/file1.txt';
$url2 'http://doman.com/file2.txt';

$data '';
$data.= file_get_contents$url1 );
$data.= file_get_contents$url2 );

$fp fopen'writable_file''w' );

if ( !
$fp )
     die(
'Unable to open file for writing');

fwrite$fp$data );
fclose$data);

echo 
'Wrote ' strlen$data ) . ' bytes to writable_file';


?>
Not tested, wrote it just now .. Might contain some syntax errors
EscortDate_Enoj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote