Y
Y
yischyk2022-01-29 17:10:04
PHP
yischyk, 2022-01-29 17:10:04

Why can't you copy a PHP page?

I can not display the page using the file_get_contents method

$data = file_get_contents('https://www.instagram.com/zuck/?__a=1');

var_dump($data);


In the browser everything is OK, but it does not work on the site. There is someone who has already worked with this, explain why and how to solve the problem. Either authorization is needed (so that the session is), or ip is blocked.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puma Thailand, 2022-01-29
@opium

So there you need authorization and there is given a few remember json

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question