[SOLVED] Flush(), ob_flush() not working in PHP (Disabling gzip through htaccess)

Flushing the output buffer doesn’t works in PHP sometimes no matter what you do. I had this code which would never work on my server but would perfectly fine on localhost. This was the code. <?php include(‘common.php’); ini_set(‘output_buffering’,’on’); ini_set(‘zlib.output_compression’, 0); //ini_set(‘implicit_flush’,1); ob_implicit_flush(); for($i=0;$i<10;$i++) { echo $i; echo str_repeat(” “, 500); ob_flush(); flush(); sleep(1); } ?>… Continue reading [SOLVED] Flush(), ob_flush() not working in PHP (Disabling gzip through htaccess)

Published
Categorized as php

[Solved] Unable to update .ICEauthority error on booting

I received this error after installing updates and restarting the computer. It was nothing but a file-permission issue. You can easily fix it. To solve it, type the follow these instructions: Go to Application menu->Accessories->Terminal or press Alt+F2 and type gnome-terminal and press enter. In terminal, type: sudo chown username:username .ICEauthority sudo chmod 0644 .ICEauthority Replace username with your… Continue reading [Solved] Unable to update .ICEauthority error on booting