I have a PHP script where I want to show its progess. From this super question and perfect answer How to add a progress bar to a shell script? I tried to emulate the behaviour:
shell_exec("echo -ne '###### 30%'\r");
But nothing gets printed to the screen.
My guess is this is because STDOUT not correct, or I have to echo the echo like?
echo shell_exec("echo -ne '###### 30%'\r");