oh sorry, my previous reply didn't CC the mailing list.
the problem has been solved now, it was indeed the output buffering :(
Wez Furlong wrote:
>On 08/14/02, "Zeev Suraski" <[EMAIL PROTECTED]> wrote:
>
>
>>Any chance you're using output buffering?
>>
>>
>
>Hopefully you are just using output buffering; check for
>settings in your php.ini or apache configuration such as
>zlib.output_compression, output_buffering, output_handler.
>
>If that doesn't seem to work, there was a memory usage problem
>for remote files - if your files are being retrieved via sockets,
>PHP would not recyle redundant buffer space and you experience similar
>symptoms to what you have described; IIRC the fix for that was in 4.2.
>
>Once you've eliminated that problem, I'd suggest that you
>use readfile() instead of manually looping; readfile should
>be much kinder to your hardware as it uses mmap, which means
>that PHP doesn't need to keep allocating small buffers in the loop,
>and that the OS can potentially share the mapped memory between
>clients (which makes a lot of sense for you!).
>
>--Wez.
>
>
>
>>>The problem is a little script we use that puts out files to the user. The
>>>code used is as follows:
>>>
>>> if( $fp = fopen( $images_base.$show, "rb" ) ){
>>> while( !feof( $fp ) ){
>>> print( fread( $fp, 4096 ) );
>>> flush();
>>> }
>>> }
>>> fclose($fp);
>>>
>>>
>
>
>
>
>
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php