View source code with login (PHP)

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.

My code:

$homepage = file_get_contents('');
echo $homepage;

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?

Source: php

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.