i built a tiny script to test this behaviour:
- Code: Select all
<?php
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename='.'123.txt');
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
header('Cache-Control: must-revalidate');
header('Pragma: public');
for($i = 0; $i<10; $i++){
echo $i . PHP_EOL;
sleep(1);
}
?>
Why if i execute it on my local Zend Server it runs but if i run it on Zend Server for IBM i it doesn't run ?
On windows, download dialog pops up immediately while on IBMi it is delayed 10 seconds.
PHP ini Directives for output buffer are the same on both system.
(
implicit_flush = on
output_buffering = Off
)
Why this?
Thanks

