Last active
August 29, 2015 14:14
-
-
Save islahul/3841386348a28979ccb7 to your computer and use it in GitHub Desktop.
PHP: fgetcsv function, CSV upload/read failing to detect line endings on Mac
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Solution: http://php.net/manual/en/filesystem.configuration.php#ini.auto-detect-line-endings | |
ini_set("auto_detect_line_endings", true); | |
// In a Wordpress plugin | |
@ini_set("auto_detect_line_endings", true); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment