php ini auto_detect_line_endings

One never-ending source of developer frustration is derived from the end-of-line (EOL) character because of the varying syntax employed by different operating systems.

Enabling auto_detect_line_endings determines whether the data read by fgets() and file() uses Macintosh, MS-DOS, or Linux file conventions.

auto_detect_line_endings = Off

If your scripts have to deal with files from Macintosh systems,or you are running on a Mac and need to deal with files from unix or win32 systems, setting this flag will cause PHP to automatically detect the EOL character in those files so that fgets() and file() will work regardless of the source of the file.





Content