How to detect that the mobile content has been downloaded successfu... | Search |
NowSMS Support Forums ⬆ MMS & SMS Technical Discussions (unsupported) ⬆ Archive through October 05, 2005 ⬆ |
◄ ► |
Author | Message | |||
Anonymous |
Hi all ! I'm maintaining a server for mobile content provider that let someone/customer download mobile content which is stored in our server via GPRS. My question is: 1. For the moment I'm using PHP function fopen & fpassthru to make my customers get their mobile content via GPRS. This is done when they browse to the page : getrequest.php?id=21&msisdn=628563087450, for example. In this page the ID & MSISDN is checked and if it is valid then the content (polytone, color wallpaper, etc) are pushed to their mobile phone using this PHP script : header("Content-Type: audio/midi"); header("Content-Disposition:inline; filename=".basename($path)); header("Content-length: ".filesize($path)); $ambil=fpassthru($file); fflush(); However I never found a way to be sure that this file was successfully downloaded. Because I need to store that information into the database (Information if they had succesfully download the polytone, color wallpaper, etc). Because I need this information for billing purposes. Anyone here found a way to detect the end of a download via fpassthru or maybe by fread or readfile or any other function maybe ? 2. How to detect that my customer are downloading the content via their mobile phone browser (by GPRS) because I've seen that they can do that via PC browser (by internet explorer) too. How can I solve this problem? Because I need to restrict my customer so that they can only access my server via their mobile phone only (by GPRS)? Thanks a lot in advance ! | |||
Forest Luo New member Username: Forest_luo Post Number: 14 Registered: 04-2004 |
You can check User Agent for discriminate browser. It is hard for confirming success of downloading, because there are proxys between Mobile Phone and your server. |