How do I get ini_set('output_handler', '') to work?!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



What am I doing wrong...

In my php.ini I have this for my web pages (and I want it): 

  output_handler = ob_gzhandler

But this causes my command line script to not show output until the very
end.

I thought I could disable it at the top of a script, but it's not working!?!

#!/usr/bin/php -q
<?php
  ini_set('output_handler', 'mb_output_handler'); 
  system('php -i | grep output_handler');
?>

root@# ./myscript.php
output_handler => ob_gzhandler => ob_gzhandler
zlib.output_handler => no value => no value


If I comment out the line in the php.ini file, then things work great (and
what exactly is the output_handler being used if I don't specify one? It
just says 

  output_handler => no value => no value

I tried to put this in my script too but it doesn't make any difference:

  ini_set('output_handler', ''); 
or
  ini_set('output_handler', null); 

root@# ./myscript.php
output_handler => ob_gzhandler => ob_gzhandler
zlib.output_handler => no value => no value

UGH!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux