Announcement

Collapse
No announcement yet.

Store Patch download count on server side

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Store Patch download count on server side

    Hi,
    I'm using True update 2.0. I need to know how many times the patch has been downloaded

    I am thinking to do as mentioned below

    1. once patch file is downloaded successfully to client, open the text file whisc is on the server , read the counter value
    2 . increment by 1 and saving back to the file

    Is it possible to do that? Please help how to achieve


    Thanks
    Sugumar
    Last edited by nsugumar; 10-15-2007, 01:42 PM.

  • #2
    In order to make changes to a file on your server, you will need to either use a script running on the server, or use the FTP plugin actions to download/modify/upload the file.

    Using a script is the preferred method by far. (Using the FTP plugin you would likely run into software firewalls complicating the user experience.)

    In TrueUpdate you can use the HTTP.Submit or HTTP.SubmitSecure actions to call out to any script on your server, for example a PHP script.

    You'll need to find or create an appropriate PHP script yourself.

    Edit: A third method which might work is to use a Web Site screen to display a web page (at your server) which has an embedded counter in it.
    Last edited by Lorne; 10-15-2007, 02:36 PM. Reason: Thought of a third way
    --[[ Indigo Rose Software Developer ]]

    Comment


    • #3
      Store Patch download count on server side

      Hi Lorne,
      Thanks for your reply. So I have to call any external script which is running on the server. By using Trueupdate 3.0, Is it possible to create the file on server within the Trueupdate script itself, without calling other script like PHP etc.?

      Thanks
      Sugumar

      Comment


      • #4
        The TrueUpdate software is not running on the server, it's running on the end-user's machine (the client machine). You can create a file on the client's machine, and then upload that to the server. Or you can call a PHP script or some other kind of script running on the server, and tell it to modify the file, or to increment a count in a database on the server, or anything to that effect.
        --[[ Indigo Rose Software Developer ]]

        Comment

        Working...
        X