I would like to monitor my program which is running on the web server. Can I draw the progress bar or simply show the percentage which is returned by my code? The php script is spawning the external code with parameters.
$Status="rendering...";
$cmd = "cd $rpath && $envopts /home/arm2arm/bin/sph2grid";
$shellcmd=$cmd.$params.'| tee sph2grid.log ';
echo '<strong>'.$shellcmd.'</strong>';
$tmp=shell_exec($shellcmd);
sonra tüm sonra günlük dosyasını gösteriyorum:
<?php
function ViewLog() {
$string = file_get_contents('../../PHP-Login/tmp/sph2grid.log');
$string = str_replace("\n", '<br>', $string);
echo $string;
}
?>
Biraz benim uygulamanın çıkışını bağlayabilirsiniz "<div>"?
Şimdiden teşekkürler.
Arman.