I wrote my code in PHP3 I believe and it worked fine. However, when the server was upgraded to use the newer PHP4 (dunno exactly which version) my code started breaking...
originally I have this code:
$pp = popen("$prog -f $uploadfile", 'r');
and I will manipulate the output of the $prog by using the $pp pointer.
However, since the upgrade, the output of the $prog is truncated and it doesn't matter whether I use popen(), passthru() or exec(), the raw output will still be truncated... I wonder if I have some kind of characters that should be escaped in the raw output or not, but any pointers on how to fix this problem will be appreciated.
Thanks a lot in advance!