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

Help with email validation please...
Hi,
Please could you help.
I have a register.php login page where users register, the detail

NOOB needs help with upload file
The intent of this form is to create a folder for a client and upload an image into another folder '

single page with referrer to show correct page
I have a simple website with a couple of different pages. I would like to be able to in a div tag w

Image DPI
Hi.

I allow users to upload images, the user then is able to adjust several settings for the

radio button reamains checked
Hello i'm trying to keep the state off my radio buttons so it shows which ones where clicked after t

Motivational Posters
Hello,

I wonder how can i do them in php. Are there any sample codes that you can show me?

Why do I get this error?
Error:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or

simplexml and xpath - Need some help
Hello,

I am trying to parse an xml which comes back from Amazon and I am trying to know how m

PHP IMAGE UPLOAD SCRIPT
Hi for the last week i have been looking for scripts that will upload a photo to a certain folder wh

Print 'a' to 'z' via for loop
A very simple problem..
How Can I print a to z NOT a to y ?
It is a part of a code where
<

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