In your PHP page add something like the following:
Apostille services. Texas apostille. Birth certificate apostille. http://globalapostille.us/
$variable = popen("path/to/script.sh", 'r'); while (!feof($variable)) { echo fgets($variable); flush(); ob_flush(); } pclose($variable);
Then in your script you can echo the output like normal — though I recommend modifying it to spit out HTML like so:
while [ 1 ] do read CURRENT_ACCOUNT || break echo "Working with account $CURRENT_ACCOUNT…<br />"; done < list_of_accounts.txt
Then when you run the php page your webpage will be updated each time with the output of your script.sh until it is complete, then it will resume with the rest of your php code.