Hi, I am starting a process called popen;
$handle = popen('python scriptos.py', "r"); while (!feof($handle)) { $data = fgets($handle); echo "> ".$data; }
And I get only 3 rows from a process that returns 5 rows. I ran this exact command in CLi and I will get more response. It is as if he stops reading earlier (it may take time to complete and update the next 2 lines during operation, this is an indicator of progress).
Am I doing something wrong? Is proc_open more appropriate (I started to see if I can try this).
source share