note 38179 added to function.include
| From: | vincent at rn2 dot php dot net | Date: | Thu, 11 Dec 2003 01:32:42 +0000 |
| Subject: | note 38179 added to function.include | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-61776@lists.php.net to get a copy of this message | ||
You could use the following to store file contents using include() and output buffering:
----------------------------------
// Aussme $file is set
ob_start();
include($file);
$file_contents = ob_get_contents();
ob_end_clean();
-----------------------------------
Have fun!
----
Manual Page -- http://www.php.net/manual/en/function.include.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+38179
Delete -- http://master.php.net/manage/user-notes.php?action=delete+38179&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+38179&report=yes
Search -- http://master.php.net/manage/user-notes.php