RE: [PHP] readfile() problem
| From: | Robert Cummings | Date: | Fri, 13 Oct 2006 07:26:57 +0000 |
| Subject: | RE: [PHP] readfile() problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-243076@lists.php.net to get a copy of this message | ||
On Fri, 2006-10-13 at 13:28 +0700, Peter Lauri wrote:
> Hi, I am trying to do this, but now I cannot set values with ini_set. I do
> the following and it outputs "could not set". I have also tried 0, "0", but
> that doesn't help.
>
> if(ini_set("output_buffering", "off")) echo "could set";
> else echo "could NOT set";
I don't think you can set it at run-time, at least it wouldn't make
sense to me... looking at PHP it has the following semantic:
PHP_INI_PERDIR
So you can't :) But the following might work without having to edit
a .htaccess:
<?php
while( ob_get_level() )
{
ob_end_flush();
}
?>
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'