Can I use the flush() function of PHP when using the builtin webserver? I am starting the php builtin webserver inside /etc/rc.local with
/etc/rc.local
nohup /usr/bin/php -S 0.0.0.0 myindex.php 2>&1 >> /var/log/my.log &