note 55526 added to function.fopen
| From: | (Zealot) | Date: | Fri, 05 Aug 2005 20:35:43 +0000 |
| Subject: | note 55526 added to function.fopen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-93145@lists.php.net to get a copy of this message | ||
When designing a few flatfile databases and admin panels, I stumbled upon an interesting thing. If a
file has been generated into a page or variable via the readfile or include methods (did not try
require), an ereg or preg replace to replace \n with <br> does not detect any \n in the file.
However, when attempting the same thing with fopen, fread, it works perfectly.
----
Manual Page -- http://www.php.net/manual/en/function.fopen.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+55526
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55526&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55526&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55526&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55526&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55526&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55526&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+55526&report=yes
Search -- http://master.php.net/manage/user-notes.php