note 32404 deleted from function.ereg-replace by tularis
| From: | tularis@php.net | Date: | Sun, 29 Aug 2004 12:13:34 +0000 |
| Subject: | note 32404 deleted from function.ereg-replace by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-75556@lists.php.net to get a copy of this message | ||
Note Submitter: tylernt
----
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");