Click Fraud Protection
PHP related blog, freelancer to hire!

Posts Tagged cli

PHP CLI Progress Indicator

Today I wanted to create some progress indicator PHP command line, after minute googling I found http://forums.devshed.com/php-development-5/php-cli-progress-indicator-151590.html After slight change: function progressBar($current, $total, $label) { $percent = round($current / $total * 100); if ($current == 0) { if ($label == “”) echo “Progress: \n”; else if ($label […]

Read more