views:

49

answers:

1

The idea is to get all the page with file_get_contents for a history record.

When I do

$original_file_div = file_get_contents("http://webpage.com/");

I have a webpage that ask for an email

If I enter to the webpage with any browser I see that page, but ... when I press refresh I have access to a new page.

I tried to do:

$original_file_div = file_get_contents("http://webpage.com/");
$original_file_div = file_get_contents("http://webpage.com/");

but still have the email page

is there any way to make refresh throw file_get_contents

I DID TRY TO POST BUT DIDN'T WORK =(


ADDED: The site is using Cookies

+1  A: 

I would use curl... + accept cookies.

qxxx