Alternatives to using file_get_contents()?

Discussion in 'HTML / PHP / JavaScript / CSS' started by tmchow, May 10, 2010.

  1. I'm trying to make a call to the PHP function file_get_contents() to have my script get some remote content, parse it and take some action.

    However, when my code executes, I get the error:

    failed to open stream

    Doing some digging, I assume it's a security permission issue. Can anyone confirm this? Is there any way around this to allow this call to occur or anyone have an alternative?
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    Will curl work for you?
     

Share This Page