Quote:
Originally posted by Nat
MonkeyMan: em, help? 
Parse error: parse error in /home/html/index.php on line 5
|
ooops
on this line add the ;
$length = 1000;
and make shre you replace "(APPROX FILE LENGTH)"
with a number
you should have
PHP Code:
<?php
$length = 1000;
$fa = file("file1.txt");
$fb = file("file2.txt");
for($x=0; $x<$length; $x++)
{
echo $fa[$x] . $fb[$x] ."\n";
}
?>
but if the files are longer than 1000 lines increase that number.