[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
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.