>  And then in the event of an aborted download, where
> readfile() didn't finish reading the whole file, wouldn't execution stop,
> leaving the unencrypted file? Or would the script continue to execute even
> when the socket it's writing everything to is closed? This is an area of
> PHP I have never delved into that closely, so I'm honestly a bit puzzled.
> :)
> *
>
>
My experience is when the person closes their browser the script continues
to run for a while.  At some point the web server recognizes that nothing
is waiting for the script to finish and will abort the script.  This can be
tested by writing an infinite loop and starting it.  Then stop the browser
and watch the CPU run at 100% for sometime before it finally stops.  I am
not sure how things are affected if you execute the script from the command
line though.

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to