note 102291 modified in function.fopen by danbrown
| From: | danbrown@php.net | Date: | Mon, 07 Feb 2011 14:06:49 +0000 |
| Subject: | note 102291 modified in function.fopen by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-176730@lists.php.net to get a copy of this message | ||
[fopen note]
I have been trying unsuccessfully to upload and read a Mac OS file on a Linux server. Lots of
records show up a just one big using only the following:
<?php $fhandle = fopen($file, 'r'); ?>
or
<?php $fhandle = fopen($file, 'rb'); ?>
It does work, however, this way:
<?php
ini_set('auto_detect_line_endings', TRUE);
$fhandle = fopen($file, 'r');
?>
--was--
[fopen note]
I have been trying unsuccessfully to upload and read a Mac OS file on a Linux server. Lots of
records show up a just one big using only the following:
$fhandle = fopen($file, 'r');
or
$fhandle = fopen($file, 'rb');
It does work, however, this way:
ini_set('auto_detect_line_endings', TRUE);
$fhandle = fopen($file, 'r');
http://php.net/manual/en/function.fopen.php