Can I run a proxy in a script?

Discussion in 'PHP' started by Coopzie, Nov 17, 2007.

  1. #1
    I need to no if its possible to run a proxy in a script, so that every user that goes on the site is using a proxy :), its kinda of hard to explain, but my script will grab a download link, and i need to no if its possible to hide that download ink behind a proxy, you can ask me why, its quite important,

    if anyone knows of how to do it please post :)
     
    Coopzie, Nov 17, 2007 IP
  2. kemus

    kemus Guest

    Messages:
    487
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Yes- it's possible to have your script use a web-proxy. Just have it go to a proxy/URLYOUWANT, for example, if you were using
    use
     
    kemus, Nov 17, 2007 IP
  3. ds316

    ds316 Peon

    Messages:
    154
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #3
    file_get_contents is quite inefficient for grabbing files off of other servers - curl would be a much better option.
     
    ds316, Nov 18, 2007 IP
  4. Coopzie

    Coopzie Well-Known Member

    Messages:
    1,666
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    155
    #4
    the script is already using curl :), to do the job, just need it to use a proxy, I could discuss this more further via PM
     
    Coopzie, Nov 18, 2007 IP
  5. mydir

    mydir Active Member

    Messages:
    352
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    58
    #5
    he will be also useful thanks to me ;p
     
    mydir, Nov 18, 2007 IP