[Help] Script for selling files on website

Discussion in 'PHP' started by ryanlie, Sep 11, 2012.

  1. #1
    Hi,

    Does anyone know the system of selling files on website? Ex: graphicriver, shutterstock, istockphoto.

    How to protect the download link address?
    Ex: "www.website.com\file.jpg", i think this is a default address to download "file.jpg". But it can be copy paste by any user to download it.

    I found some website use a random long name to replace "file.jpg" Ex: "www.website.com\sfsdfKHhsdfkKJ..." and it is just active for a certain time, maybe 1 or 2 hours.

    Does anyone have a reference of php script for this system? or maybe have another better system?

    Thanks
     
    ryanlie, Sep 11, 2012 IP
  2. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #2
    I don't think systems like that are easy to find, most systems are build on request. I don't know any systems that will do what you are asking for.

    Maby you could hire a developer to create one for you!?
     
    EricBruggema, Sep 11, 2012 IP
  3. Ikeshaws

    Ikeshaws Greenhorn

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    6
    #3
    You can sell virtually any digital file through PayPal without having to write software.This script can automate the sale of digital files so you can automate additional.
     
    Ikeshaws, Sep 11, 2012 IP
  4. ryanlie

    ryanlie Peon

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks Ikeshaws... After research, i found Paypal for Digital Goods. Still need more research on how to use it. Maybe someone can share?
     
    ryanlie, Sep 12, 2012 IP
  5. ezprint2008

    ezprint2008 Well-Known Member

    Messages:
    611
    Likes Received:
    15
    Best Answers:
    2
    Trophy Points:
    140
    Digital Goods:
    1
    #5
    If you're not selling in high volume, email it to them.

    Otherwise a script that has the file in a database and a handler file that has the headers/footers of page etc. and calls the file into it , and create a random file name
    example 34ssf3fsdf.php
    and writes the file to a folder.

    and then a button on that page that when clicked activates a handler file that 1. begins download of the file, and 2. deletes the file from folder 3. closes the page.
    So that they're left with the file downloading..and no page. and even if they copied the URL, it no longer exists.
     
    ezprint2008, Sep 13, 2012 IP
  6. gilgil2

    gilgil2 Member

    Messages:
    71
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #6
    Or similar to Hand of A'dal just create a unique code for each payment (as paypal does) and then write that code to a db table, the user then has to submit that code to download the file and once it has been submitted once that code is deleted from the db or change another field to used or something along those lines.
     
    gilgil2, Sep 13, 2012 IP
  7. TacoExplosion

    TacoExplosion Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    are you selling in high demand? if not, just email them
     
    TacoExplosion, Sep 13, 2012 IP