How to file_get_contents when login required?

Posted on 16th Feb 2014 by admin

Hello!

I am trying to read data from a page that you have to be logged into to view, I am trying to use file_get_contents to do this, I have read that I need to use cURL, Is that true?

Also, as Another Option, Well I'm not sure how to explain what I want to do but let me try

I want to go to the remote website, Login, and then run my script as I'm logged in.. If that make sense

Basically, Right now I go to the website, Login, and then use file_get_contents to pull the website and I'm not logged in, Is there anyway that I can make it read that I am logged in?

Other forums