note 19637 added to function.readfile

From: Date: Wed, 06 Mar 2002 16:08:36 +0000
Subject: note 19637 added to function.readfile
Groups: php.notes 
Request: Send a blank email to php-notes+get-27417@lists.php.net to get a copy of this message
you can also use file() instead to store the file contents in an array line by line (the newlines will remain), put the string together again using implode and in the end echo it...i.e.: $content_array = file($filename); $content = implode("", $content_array); print nl2br($content); -- http://www.php.net/manual/en/function.readfile.php http://master.php.net/manage/user-notes.php?action=edit+19637 http://master.php.net/manage/user-notes.php?action=delete+19637 http://master.php.net/manage/user-notes.php?action=reject+19637

« previous php.notes (#27417) next »