I am trying to view the source code of a website which needs Google login.
I am logged into my Google account on Chrome, and I am running the php file on Chrome using XAMPP.
$homepage = file_get_contents('http://www.example.com/');
However, when I echo it shows me a webpage that says I am not logged in, although I am logged in. What am I doing wrong?