If you are having problems with PHP not recognizing the line endings when reading files either on or created by a Macintosh computer, you might want to enable the auto_detect_line_endings run-time configuration option.
注意 length パラメータは、PHP 4.2.0でオプション となりました。