note 102291 deleted from function.fopen by cmb
| From: | cmb@php.net | Date: | Sun, 09 Feb 2020 08:13:46 +0000 |
| Subject: | note 102291 deleted from function.fopen by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-214046@lists.php.net to get a copy of this message | ||
Note Submitter: owltech at larkandowl dot net
----
[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');
?>