I want to manipulate binary files.
this was just a test to concatinate 2 text files but it said
file_put_conten ts was undefined. the second parameter is suppoed to be
'mixed data', no idea what that is.
<?php
$t1 = file_get_conten ts('test1.txt') ;
$t2 = file_get_conten ts('test2.txt') ;
$result = file_put_conten ts('test3.txt', $t1 . $t2);
?>
But this was just a test anyway since file_get_conten ts uses strings,
can someone just give me the code to concat 2 binary files? I'll be
manipulating the files before I concatinate them, so putting the data
into 2 arrays of bytes 1st would be best.
Herc
this was just a test to concatinate 2 text files but it said
file_put_conten ts was undefined. the second parameter is suppoed to be
'mixed data', no idea what that is.
<?php
$t1 = file_get_conten ts('test1.txt') ;
$t2 = file_get_conten ts('test2.txt') ;
$result = file_put_conten ts('test3.txt', $t1 . $t2);
?>
But this was just a test anyway since file_get_conten ts uses strings,
can someone just give me the code to concat 2 binary files? I'll be
manipulating the files before I concatinate them, so putting the data
into 2 arrays of bytes 1st would be best.
Herc
Comment