View Single Post
Old 10-31-2004, 01:51 PM  
Juicy D. Links
So Fucking Banned
 
Industry Role:
Join Date: Apr 2001
Location: N.Y. -Long Island --
Posts: 122,992
Quote:
Originally posted by EscortDate_Enoj
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

Just tested it it worls but iget this error


Warning: fclose(): supplied argument is not a valid stream resource in /usr/home/blabla.com/htdocs/grabber.php on line 17
Juicy D. Links is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote