Edit report at https://bugs.php.net/bug.php?id=29416&edit=1

 ID:                 29416
 User updated by:    edwin at cheatah dot nl
 Reported by:        edwin at cheatah dot nl
 Summary:            ob_include function
 Status:             Wont fix
 Type:               Feature/Change Request
 Package:            *General Issues
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

Are you serious? This is what you come up with after 9 years of contemplation?
Actually I haven't been a web developer for over 5 years now, so I don't need 
the feature anymore. But you should be ashamed of yourself. First of all for 
leaving open a feature request this long, but even more so for not 
understanding the problem and for your worthless answer. Nice demonstration of 
incompetence.


Previous Comments:
------------------------------------------------------------------------
[2013-08-06 08:01:45] yohg...@php.net

$message = ob_include ( './tpl/mail.php' );

You should use

$message = file_get_contents();

since it is unrelated to "output".

------------------------------------------------------------------------
[2004-07-28 01:30:30] edwin at cheatah dot nl

Description:
------------
I often use something like the following code:

ob_start ();
include './tpl/mail.php';
$message = ob_get_contents ();
ob_end_flush ();

I would very much like to see a function of control stucture like this:
$message = ob_include ( './tpl/mail.php' );
// or
$message = ob_include './tpl/mail.php';

Of course ob_include_once, ob_require and ob_require_once behave similarly.

(Creating a custom function in PHP code is NOT possible, for the function's 
scope would be used.)



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=29416&edit=1

Reply via email to