Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

 1 Answer(s)

  • Use the code below by putting it in an php file:
    <?php
    session_start();
    
    ini_set('max_execution_time', 0); // to get unlimited php script execution time
    
    if(empty($_SESSION['i'])){
        $_SESSION['i'] = 0;
    }
    
    $total = 100;
    for($i=$_SESSION['i'];$i<$total;$i++)
    {
        $_SESSION['i'] = $i;
        $percent = intval($i/$total * 100)."%";   
    	
        sleep(1); // Here call your time taking function like sending bulk sms etc.
    
        echo '<script>
        parent.document.getElementById("progressbar").innerHTML="<div style=\"width:'.$percent.';background:linear-gradient(to bottom, rgba(125,126,125,1) 0%,rgba(14,14,14,1) 100%); ;height:35px;\">&nbsp;</div>";
        parent.document.getElementById("information").innerHTML="<div style=\"text-align:center; font-weight:bold\">'.$percent.' is processed.</div>";</script>';
    
        ob_flush(); 
        flush(); 
    }
    echo '<script>parent.document.getElementById("information").innerHTML="<div style=\"text-align:center; font-weight:bold\">Process completed</div>"</script>';
    
    session_destroy(); 
    Source https://shareurcodes.com/ website and learn more.
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: