| 1 | <? |
|---|
| 2 | |
|---|
| 3 | function TestLargeOutput(&$main_conf,&$inputs,&$outputs){ |
|---|
| 4 | |
|---|
| 5 | $byte_array = file_get_contents('my/large/file/'); |
|---|
| 6 | |
|---|
| 7 | for ($x = 0; $x <= 10; $x++) { |
|---|
| 8 | sleep(2); |
|---|
| 9 | zoo_UpdateStatus($main_conf,"Progress (%)", $x*10); |
|---|
| 10 | } |
|---|
| 11 | $outputs["Result"]["size"]=strlen($byte_array); |
|---|
| 12 | $outputs["Result"]["value"]=$byte_array; |
|---|
| 13 | |
|---|
| 14 | return zoo_SERVICE_SUCCEEDED(); |
|---|
| 15 | } |
|---|
| 16 | |
|---|
| 17 | ?> |
|---|