How to file_get_contents when login required?


Posted on 16th Feb 2014 07:03 pm 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?

Did you know?Explore Trending and Topic pages for more stories like this.
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?
No comments posted yet

Your Answer:

Login to answer
166 Like 8 Dislike
Previous forums Next forums
Other forums

ereg_replace in Wordpress
Heya - so I'm working on this site: http://world-of-smiles.theportlandco.com/new-patients

The

BSP Ext - tableView - Sort - NEWBIE
Hi,
I have been trying to get the sort to work. I have defined the column definitions by fillin

Rounding a number queried from a database
I know that to display a rounded number you just do echo "round($number)";. But how would

getting rid of quotes in strings
sick of trying to deal with them in multiple ways (entering in and taking from database, echoing, ec

List/Menu Box
On an edit page when you want something to select what a user has previously selected from the datab

Get keys and values from an array
Hellow,

I have an array $Data with keys and values. With a foreach I can display all the valu

have trouble in a if condition
The if below is working ok, it check when indexes, name, zipcode and state are empty.
Code: &

trouble printing an array....
I'm having some trouble printing out an array forwards. I'm figuring out the high and low of an arra

Email Processor
I have a few questions so this post will be a larger one! Sorry, but I'm a bit of a PHP newbie so be

HTML form problem
Ive made a form to that i want to send to my email via PHP. but when it send only the name's etc sen

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash