help changing "phpfile.php?linkid=1" to direct link.

Discussion in 'PHP' started by jmackay, Apr 16, 2008.

  1. #1
    hey guys.
    i was wondering if you guys could help me out.
    ive been trying for a while now but with no luck .
    what i want:
    is it possible to make a php file that will extract the direct link from "phpfile.php?linkid=(number)". without having to click on each one.

    eg phpfile.php?linkid=1 = http://www.google.com.au
    phpfile.php?linkid=2 = http://www.phphelp.com


    thanks in advance.

    james
     
    jmackay, Apr 16, 2008 IP
  2. Barti1987

    Barti1987 Well-Known Member

    Messages:
    2,703
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    185
    #2
    Open the URL and read the headers and extract the header location and quit.

    Peace,
     
    Barti1987, Apr 16, 2008 IP
  3. eTechDude.com

    eTechDude.com Member

    Messages:
    205
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #3
    you can but it can cause a RFI
     
    eTechDude.com, Apr 16, 2008 IP
  4. matthewrobertbell

    matthewrobertbell Peon

    Messages:
    781
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Only if you were silly enough to include() it.
     
    matthewrobertbell, Apr 18, 2008 IP