1

I have the following code

<?php
  if(isset($_POST['submit'])){
    exec('java -jar "C:\Temp\showinfo_v2.jar"', $response);
    print '<br>';
   }
?> 

This piece of code shows me my personal information but i have to wait like 30 seconds for it to show. I need way that it simultaneously shows me info step by step instead of giving me my whole output in 30 seconds

What I have tried so far

  • I tried changing the exec() to system() and turn output_buffering off in php.ini
  • Changed exec() command to shell_exec() and also some other codes but none worked.
Noah Boegli
  • 750
  • 1
  • 7
  • 24
phpscrub
  • 25
  • 6

0 Answers0