Strange behaviour forcing download dialog

General discussion on Zend Server for IBM System i

Strange behaviour forcing download dialog

Postby vaa03 on Tue Jan 15, 2013 5:03 pm

I'd like to force download dialog before my the script ends its execution.
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
vaa03
 
Posts: 16
Joined: Sun Apr 04, 2010 11:57 pm

Re: Strange behaviour forcing download dialog

Postby erich_hieden on Wed Jan 16, 2013 8:48 am

Do you get any error messages in php.log, apache log, ...?

It runs just fine on my machine (V7R1, ZendServer 5.6.0 Hotfix 2).
erich_hieden
 
Posts: 372
Joined: Tue Jul 07, 2009 9:01 am


Return to Zend Server for IBM i

Who is online

Users browsing this forum: No registered users and 3 guests