FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » detecting a file in use
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: detecting a file in use [message #183651 is a reply to message #183648] Wed, 06 November 2013 17:36 Go to previous messageGo to previous message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma:
Senior Member
On 06/11/13 17:12, richard wrote:
> What should be used to know when a request has been made for the server to
> load an audio file?
> As I see it, the server has to know that a request has been made.
>
> You, the user, using your browser, sees a list of songs that you can play.
> You click that link, the browser sends a request to fetch that file.
> This is the point in time when I want to know that the request has been
> made.
> Javascript takes care of the playing side.
> But still, the server has to have some way of knowing which audio file is
> being requested and whether or not buffering is needed.
>
> Now that the audio file has played, the server needs to know that file has
> completed downloading.
> So what do I use to know this has happened?
>
YOU don't.
The operating system knows, because the IP connection has (probably)
gone. The file may or may not remain in cache depending on how much RAM
the server has, and how busy it is.


--
Ineptocracy

(in-ep-toc’-ra-cy) – a system of government where the least capable to
lead are elected by the least capable of producing, and where the
members of society least likely to sustain themselves or succeed, are
rewarded with goods and services paid for by the confiscated wealth of a
diminishing number of producers.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: accessing nested unknown unserialized objects
Next Topic: detection of 2d array?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 00:32:52 GMT 2024

Total time taken to generate the page: 0.03974 seconds