Forum


Replies: 6   Views: 2892
Add progress bar
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by irishadar  · 18-02-2018 - 12:59

hi,

I am trying to add a progress bar to a "phpdocx" script.

but keep getting the error:

"Warning: Cannot modify header information - headers already sent by (output started at C:\phpdocx\dev\TetsugaPhotHeborg080218.php:332) in C:\phpdocx\classes\CreateDocx.inc on line 369"

Is it even possible?

can anyone shear with me what can I do?

 

I'm using this code in the PHP part :

echo " $vcurrent is $percent% of $vtotal <p/>";
ob_flush();
flush();
ob_end_clean() ;

and this code after the PHP code:

 <style>
  .outter{
          height:25px;
          width:500px;
          border:solid 1px #000;
  }
  .inner{
          height:25px;
          width:<?php echo $percent ?>%;
          border-right:solid 1px #000;
          background-color:lightblue;
  }
  </style>

  <div class="outter">
    <div class="inner"></div>
  </div>