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. |
`------------------------------------------------------------'
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php