Re: Re: PHP cuts download process prematurely

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



What you really need to do is grab the phpinfo from both servers and see what the differences are.  Either put them side-by-side on the screen, or print them both out; but either way you need to do a line-by-line, configuration-by-configuration check to see what/where the differences in the setup are.

Your sys-admin should have made the test servers EXACTLY like the production servers so that working with them would be seemless, but not all programming/test/production environments are ideal.

Wolf
---- Manuel Barros Reyes <manuca@xxxxxxxxx> wrote: 
> On Tue, Feb 26, 2008 at 3:07 AM, Andrés Robinet <agrobinet@xxxxxxxxxxxxx> wrote:
> >
> >  Though this is not likely to solve the problem, try adding the following two
> >  lines at the beginning of the script (even before you query the database and do
> >  all your logic)
> >
> >  ignore_user_abort(true);
> >  set_time_limit(0);
> >
> >  You need the log files to know exactly what the problem is. And, even if you are
> >  not solving this issue using compression as a workaround, you may also want to
> >  add at the beginning of the script:
> >
> >  ob_start("ob_gzhandler")
> 
> 
> From what I read I think ob_start("ob_gzhandler") would be needed if I
> would like to compress output transparently and let the clients
> browser do the reverse job in the same maner, but in this case I am
> uploading the files as .gz and the person who downloads it takes care
> of decompressing it by hand.
> 
> Maybe I should use a simple ob_start() in this case. I understand
> ob_start()-ob_end_flush() collects data in a server buffer and outputs
> it all together but in the case of my script the only output is the
> file I am uploading and the output is only in th echo $contents.
> Unless I am missing details of ob_start() wouldn't this be equivalent
> in this case?
> 
> Thanks
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux