How to Fetch Remote File that is not Visitor Dependent?

Discussion in 'PHP' started by anilinkz, Apr 7, 2008.

  1. #1
    Can you masters tell me how i can fetch a page that is not visitor dependent.

    meaning even if that visitor has some restrictions OR his internet connection is slow, they can still see whatever it is in the code that i'm fetching.

    something like server-side fetching.

    I'm using cURL at the moment to get a remote page and make the contents of that page my string....

    I've also tested file_get_contents()

    don't know about fopen(). someone told me fopen is for files that aren't remote.

    any help here masters. ^_^
     
    anilinkz, Apr 7, 2008 IP
  2. tamilsoft

    tamilsoft Banned

    Messages:
    1,155
    Likes Received:
    78
    Best Answers:
    0
    Trophy Points:
    0
    #2
    CURL will be better one, coz you can do auto login to authenticated pages...
     
    tamilsoft, Apr 7, 2008 IP
  3. Danltn

    Danltn Well-Known Member

    Messages:
    679
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    120
    #3
    cURL is probably your best bet, it's extremely powerful. Sockets of course can work too, but I like cURL. Easy to use.

    Dan
     
    Danltn, Apr 7, 2008 IP
  4. anilinkz

    anilinkz Peon

    Messages:
    118
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    i've been using curl but it seems that it is user-dependent. i've tested it on a PC where there are restrictions and some parts on my site which uses CURL cannot be seen.

    is there other ways of fetching a remote file?
     
    anilinkz, Apr 7, 2008 IP