note 37793 modified in function.fgetcsv by danbrown

From: Date: Sun, 17 May 2009 18:19:49 +0000
Subject: note 37793 modified in function.fgetcsv by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-155103@lists.php.net to get a copy of this message
For all those people struggling with Macintosh conversions, since PHP 4.3 there is a new runtime setting available: auto_detect_line_endings boolean When turned on, PHP will examine the data read by fgets() and file() to see if it is using Unix, MS-Dos or Macintosh line-ending conventions. This enables PHP to interoperate with Macintosh systems, but defaults to Off, as there is a very small performance penalty when detecting the EOL conventions for the first line, and also because people using carriage-returns as item separators under Unix systems would experience non-backwards-compatible behaviour. --was-- For all those people struggling with Macintosh conversions, since PHP 4.3 there is a new runtime setting available: auto_detect_line_endings boolean When turned on, PHP will examine the data read by fgets() and file() to see if it is using Unix, MS-Dos or Macintosh line-ending conventions. This enables PHP to interoperate with Macintosh systems, but defaults to Off, as there is a very small performance penalty when detecting the EOL conventions for the first line, and also because people using carriage-returns as item separators under Unix systems would experience non-backwards-compatible behaviour. http://php.net/manual/en/function.fgetcsv.php

« previous php.notes (#155103) next »