-1

I want to get the content generated by a PHP page, but this PHP page is generated (by an external site, not mine) after https authentication.

When I try to get the content with file_get_contents, I receive an error message ("you are not logged in"), but I'm logged in, with another page of the same browser.

DanielBarbarian
  • 5,093
  • 12
  • 35
  • 44
web web
  • 15
  • 1
  • 4
  • You'll need to show the code you have and explain the problem more clearly if you want to get any good answers. – Simba Nov 01 '16 at 12:14

1 Answers1

0

PHP is executed on the server, not on the client (your browser). To be able to get the contents with php you need to use curl.

Curl will allow you to log in, the exact process depends on the website you are trying to get, check this answer about how to log in to a remote site with curl

Community
  • 1
  • 1
TK423
  • 1
  • 2