Percentage progress bar on cmd line in php