You are here: Re: [PHP] weird thing; downloading from a php script stops at exactly 2.000.000 bytes « PHP « IT news, forums, messages
Re: [PHP] weird thing; downloading from a php script stops at exactly 2.000.000 bytes

Posted by "Richard Lynch" on 09/28/29 11:18

I just noticed the eaccelerator bit in this thread.

Just disabling eaccelerator isn't the same as not compiling it in in the
first place...

Try that before reporting a bug to http://bugs.php.net

On Thu, June 9, 2005 1:59 am, Catalin Trifu said:
> Hi,
>
> I installed php5 using the configue below. I tried with apache2 as well
> and same things.
>
> './configure' '--prefix=/usr/local/php5'
> '--with-apxs=/usr/local/apache/bin/apxs' '--disable-cgi'
> '--with-config-file-path=/etc/php5' '--with-dom' '--with-gd'
> '--enable-sockets' '--enable-exif'
> '--with-freetype2' '--with-freetype-dir=/usr/include/freetype2'
> '--enable-gd-native-ttf'
> '--with-zlib-dir=/usr' '--with-curl' '--with-curlwrappers' '--enable-ftp'
> '--with-mysql=/usr'
> '--with-xsl' '--with-libxml-dir=/usr'
>
> I have a script which generates a temporary catalog file, which is
> generated correctly having
> 4.7MB on disk.
> Then I push up the wire with readfile($filname):
>
> header("Content-Type: text/csv");
> header("Content-Disposition: attachment; filename=somfilename.csv");
> header("Content-Length: ". filesize($file));
>
> readfile($file);
>
>
> As expected the browser starts the download and reports it is expecting
> a file of 4.7MB.
> However, the download stops at 2.000.000 bytes no matter what browser I
> use (normally i use
> Firefox on Linux), no matter if php runs on apache2 or apache1.3
>
> Is there some php config option I missed ?
> Where could this come from ?
>
>
> Thanks,
> Catalin
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--
Like Music?
http://l-i-e.com/artists.htm

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация