Strange behaviour forcing download dialog

General discussion on Zend Server for IBM System i
Post Reply
Posts: 20
Joined: Sun Apr 04, 2010 11:57 pm

Strange behaviour forcing download dialog

Post by vaa03 » 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

	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;
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?


Posts: 393
Joined: Tue Jul 07, 2009 9:01 am

Re: Strange behaviour forcing download dialog

Post by erich_hieden » 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).

Post Reply