note 32404 added to function.ereg-replace

From: Date: Tue, 27 May 2003 03:03:48 +0000
Subject: note 32404 added to function.ereg-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-49058@lists.php.net to get a copy of this message
I tried to readfile() into a html form <textarea> on Windows with Apache 1.3, and kept getting twice as many linefeeds as I should. Using this code instead seems to fix the problem: echo strtr(file_get_contents("filename"), "\r", "\0"); ---- Manual Page -- http://www.php.net/manual/en/function.ereg-replace.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32404 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32404&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32404&report=yes

« previous php.notes (#49058) next »