I don't know if these are equal. What about \r\n line endings? And what about \r line endings (from old Macs)? I guess file() handles all of these cases (didn't test it though) and your code doesn't (with \r you'll get a one line file!). AllOlli -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php