<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1040717" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1040717</link>
    <description></description>
    <language>en</language>
          <item>
    <title>Quote:

If the download is</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/tracking-members-file-bandwidth-usage#comment-1228789</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: If the download is canceled, the script is killed, and nothing is logged when you use variables.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;I should probably take that comment back.  There are ways to execute code when the script is done.&lt;/p&gt;
&lt;p&gt;Method 1: An object&#039;s &lt;a href=&quot;http://us3.php.net/manual/en/language.oop5.decon.php&quot; class=&quot;bb-url&quot;&gt;__desstuct()&lt;/a&gt; method.&lt;br /&gt;
Method 2: &lt;a href=&quot;http://us3.php.net/manual/en/function.register-shutdown-function.php&quot; class=&quot;bb-url&quot;&gt;register_shutdown_function()&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I guess the big question is whether it will run if the script in canceled.  I know there is a setting to tell the script to keep going even if the user hits the Stop button in their browser.&lt;/p&gt;
 </description>
     <pubDate>Tue, 26 Feb 2008 03:48:15 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1228789 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Quote:

Per-download, not</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/tracking-members-file-bandwidth-usage#comment-1228788</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: Per-download, not per-chunk. That&#039;s not all that often, per-chunk could just be stored in a variable. Or am I missing something here?&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;If the download is canceled, the script is killed, and nothing is logged when you use variables.&lt;/p&gt;
 </description>
     <pubDate>Tue, 26 Feb 2008 01:41:58 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1228788 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>You also have to consider</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/tracking-members-file-bandwidth-usage#comment-1228783</link>
    <description> &lt;blockquote&gt;&lt;p&gt;You also have to consider the logging mechanism which would either be a file write or database transaction per section.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Per-download, not per-chunk. That&#039;s not all that often, per-chunk could just be stored in a variable. Or am I missing something here? &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 25 Feb 2008 20:09:34 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1228783 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>A simple way to prevent</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/tracking-members-file-bandwidth-usage#comment-1228781</link>
    <description> &lt;p&gt;A simple way to prevent download managers from resuming or using multiple connections is to not send the file size.  Download managers need to know the total filesize in order to determine where to distribute the chunks.&lt;/p&gt;
&lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: If you think about it, all PHP is doing is grabbing a chunk of file and passing it on.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;You also have to consider the logging mechanism which would either be a file write or database transaction &lt;strong&gt;per section&lt;/strong&gt;.&lt;/p&gt;
 </description>
     <pubDate>Mon, 25 Feb 2008 19:24:06 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1228781 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>I looked at that drupal</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/tracking-members-file-bandwidth-usage#comment-1228729</link>
    <description> &lt;blockquote&gt;&lt;p&gt;I looked at that drupal code, would that be a burden on system resources if there were many users downloading at the same time?&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Doubt it, I&#039;ve never heard any complaints. If you think about it, all PHP is doing is grabbing a chunk of file and passing it on. Am pretty sure this is the only way you&#039;re going to able to monitor how much people are downloading.&lt;/p&gt;
&lt;p&gt;You can vary the chunk size to tweak performance. Best advice I can give is load test, tweak and load test again. Remember &lt;a href=&quot;http://www.webmaster-forums.net/web-database-development/adodb-it-any-good&quot;&gt;that conversation we were having about siege&lt;/a&gt;? Setup a home server, then load it using Siege (over your local network), try it with both straight file downloads and downloads through PHP. See if the download times are very different and run &lt;code&gt;top&lt;/code&gt; on the server to see whether the CPU is overworked.&lt;/p&gt;
&lt;p&gt;My guess is that the hard drive and network connection will be a much bigger bottleneck than CPU in this case.&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;Another thing (off topic a bit) I wondered about people downloading large files with their browser dload manager. Having never tested this, I presume they are unreliable for members to start a say 100mb download, stop it, shut down pc and come back to it later?&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Not sure I understand the question here. You&#039;re worried whether people with download managers will be able to resume downloads? Best bet is to test it out and see what happens, particularly if you run the download through PHP. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 22 Feb 2008 16:04:27 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1228729 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>I looked at that drupal</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/tracking-members-file-bandwidth-usage#comment-1228717</link>
    <description> &lt;p&gt;I looked at that drupal code, would that be a burden on system resources if there were many users downloading at the same time?&lt;br /&gt;
It would be very easy to implement an individual file for each user to use, but wouldn&#039;t a lot of users running their script at once take up a lot of juice?&lt;/p&gt;
&lt;p&gt;This is the reason why I am scratching my head really. I suppose I could spend more hours trawling the net and eventually find a tutorial that would do the job or close enough that I could alter it to do what I wanted.&lt;br /&gt;
But I really don&#039;t know if this sort of thing is gonna be resource friendly or not.&lt;br /&gt;
Maybe 3rd party software would be better? That would run on the server.&lt;/p&gt;
&lt;p&gt;But I would be very interested if you have discovered anything GregK!&lt;/p&gt;
&lt;p&gt;Another thing (off topic a bit) I wondered about people downloading large files with their browser dload manager. Having never tested this, I presume they are unreliable for members to start a say 100mb download, stop it, shut down pc and come back to it later?&lt;br /&gt;
So I presume I should make it clear it is important to use a 3rd party download manager?&lt;/p&gt;
 </description>
     <pubDate>Fri, 22 Feb 2008 15:09:33 +0000</pubDate>
 <dc:creator>greg</dc:creator>
 <guid isPermaLink="false">comment 1228717 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>What jeeves mentioned is one</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/tracking-members-file-bandwidth-usage#comment-1228667</link>
    <description> &lt;p&gt;What jeeves mentioned is one of the things i was going to try tonight.&lt;/p&gt;
&lt;p&gt;-Greg&lt;/p&gt;
 </description>
     <pubDate>Wed, 20 Feb 2008 23:46:38 +0000</pubDate>
 <dc:creator>Greg K</dc:creator>
 <guid isPermaLink="false">comment 1228667 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Is the file being</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/tracking-members-file-bandwidth-usage#comment-1228665</link>
    <description> &lt;p&gt;Is the file being transferred by a script? What I mean is: if your script takes the filename requested by the browser, loops over the file contents transferring it in chunks to the browser, it can keep a log of how much data has been transferred.&lt;/p&gt;
&lt;p&gt;I looked this up on the Drupal API, &lt;a href=&quot;http://api.drupal.org/api/function/file_transfer/6&quot; title=&quot;http://api.drupal.org/api/function/file_transfer/6&quot;&gt;http://api.drupal.org/api/function/file_transfer/6&lt;/a&gt; It doesn&#039;t use a quota system, but probably makes more sense than my explanation, you can see how one could be implemented. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 20 Feb 2008 19:54:14 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1228665 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>This is an interesting</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/tracking-members-file-bandwidth-usage#comment-1228664</link>
    <description> &lt;p&gt;This is an interesting topic, one that leads me to want to do tests later tonight to see what might work. If I find something that might be workable, I&#039;ll post it here (or if I can&#039;t will also). I have about 4 ideas I will try out.&lt;/p&gt;
&lt;p&gt;-Greg&lt;/p&gt;
 </description>
     <pubDate>Wed, 20 Feb 2008 19:41:44 +0000</pubDate>
 <dc:creator>Greg K</dc:creator>
 <guid isPermaLink="false">comment 1228664 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
