Change URL

Discussion in 'PHP' started by brightguy07, Aug 16, 2009.

  1. #1
    I'm looking for a FREE script that will change the URL/LINK name automatically every xx seconds or whenever.

    I have a download link on my website. I want that download link to change automatically without having to rename it every 10 minutes, 20 minutes, 30 minutes, hour.

    Where can I get a FREE PHP script that will do this for me? I don't have the money to purchase it.

    ???
     
    brightguy07, Aug 16, 2009 IP
  2. maneetpuri

    maneetpuri Active Member

    Messages:
    152
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    58
    #2
    Hi,

    I searched a bit but didn’t find any ready to use script, you can write a small PHP script to do this and make it run through cron!

    Hope this helps,
     
    maneetpuri, Aug 17, 2009 IP
  3. Pudge1

    Pudge1 Well-Known Member

    Messages:
    912
    Likes Received:
    6
    Best Answers:
    1
    Trophy Points:
    140
    Digital Goods:
    1
    #3
    This sounds like a cron job. So in addition to making the cron job you'll have to write a script. This is kind of useless if you just have a smaller site. If you are worried about people leaking the download link then you should be worried about them just sending the file.
     
    Pudge1, Aug 17, 2009 IP
  4. codebreaker

    codebreaker Well-Known Member

    Messages:
    281
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    110
    #4
    You can make a script that changes the file name and update a database with the new url.
    Then just run it through cron every 10 minutes or so.
    And on the download page just get the link from the database.
     
    codebreaker, Aug 17, 2009 IP
  5. premiumscripts

    premiumscripts Peon

    Messages:
    1,062
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #5
    There are better solutions to prevent file theft (sharing) than just having the file renamed every X minutes. I can't remember the name of the script that gives you a 1 use link every time, anyone fill in the blanks for me?
     
    premiumscripts, Aug 17, 2009 IP