what is the fastest way to read remote html file ?

Discussion in 'PHP' started by ramysarwat, Oct 10, 2010.

  1. #1
    what is the faster way to read remote html file ?

    is it fopen or file_get_contents or something else ?
     
    ramysarwat, Oct 10, 2010 IP
  2. ActiveFrost

    ActiveFrost Notable Member

    Messages:
    2,072
    Likes Received:
    63
    Best Answers:
    3
    Trophy Points:
    245
    #2
    According to benchmarks, it's CURL.
     
    ActiveFrost, Oct 10, 2010 IP
  3. webber09

    webber09 Active Member

    Messages:
    131
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    71
    #3
    I use file_get_contents for all things like that. My menu's are read from a separate html file so I don't have to edit on every page =] works a treat
     
    webber09, Oct 10, 2010 IP