Re: Monitoring download, detecting completion?
| From: | Tijnema ! | Date: | Fri, 09 Mar 2007 08:02:08 +0000 |
| Subject: | Re: Monitoring download, detecting completion? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-250151@lists.php.net to get a copy of this message | ||
On 3/9/07, Skip Evans <skip@bigskypenguin.com> wrote:
Hi Tijnema, To be clear, this can work for the client downloading say a music (mp3) file from the server to their local hard drive? If so, that would be great, but I just want to be clear I spelled out the issue properly. Thanks tons! SkipI'm sorry, i thought you meant you wanted to transfer from 1 server to your own server. With this i can't help you any further i think, The code posted by Nicholas Yim isn't very succesfull too i think as it only shows you when the server outputted the last piece of the file to the client, but that is NOT the same as when download is completed. I don't know if it is even possible in PHP, as i don't have a way to do it now. Tijnema Tijnema ! wrote:
Hi, I think that cURL would do the job, starting the transfer with curl_init ,curl_setopt and curl_exec then you can get the info about the download with curl_getinfo Also take a look at the other curl functions, and have a look at the curl_setopt function page, as there are a lot of options that can be set. cURL: http://www.php.net/curl Hope this is what you need. Tijnema On 3/8/07, Skip Evans <skip@bigskypenguin.com> wrote:-- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 http://bigskypenguin.com =-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL development framework. http://phpenguin.bigskypenguin.com/Hey all, I have a need to monitor a download from the server to the client's machine. I'm not familiar with any mechanisms for doing so. If anyone has any hints to point me towards I'll get a' researching. -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 http://bigskypenguin.com =-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL development framework. http://phpenguin.bigskypenguin.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php