Skip to content

Instantly share code, notes, and snippets.

@ConnerAiken
ConnerAiken / README.md
Created April 14, 2018 20:03 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@ConnerAiken
ConnerAiken / progress.php
Created August 15, 2016 19:56 — forked from mjuhl/progress.php
PHP Output Buffering/JavaScript/CSS Transition Progress Bar Experiment
<?php
/* For AJAX, if frustrated, try the following (see http://www.php.net/manual/en/function.flush.php#91556):
@apache_setenv('no-gzip', 1);
@ini_set('zlib.output_compression', 0);
*/
ob_start();
set_time_limit(0); // for scripts that run really long
function force_flush ($add_whitespace = TRUE) {