From: <php...@li...> - 2010-02-07 17:41:38
|
> In any case, this isn't due to bugs in PHP or the PHP/Java Bridge, but > due to your misunderstanding of how HTTP chunked encoding works and what > fgets() and feof() do. I comfortably admit I am new to downloading very large files in PHP, and I'm trying to learn. I found an approach that worked...mostly. But it caused PHP to crash under JavaBridge and Tomcat. An experienced Java programmer saw the logs and said it was due to a class error. I contacted this mailing list and explained what was happening and was told that it was down to a feature not yet supported in JavaBridge. Now I'm being told it's not down to that. I don't have any understanding of HTTP chunked encoding works. I'm not using this header in my code and your references to it were the first that I had seen. I'll read up on this and see how I can use it given what you say. And looking at the implementation of chunked encoding will give me more information on how fgets() and feof() work generally, and in the context of chunked encoding. Again, many thanks for helping out. It is appreciated. Mark... |