file_get_contents full page source using php

27 Views Asked by At

I use file_get_contents(); to get full source page for a website. Sometimes there are some content like 'product details' or 'reviews' that not showing until you click on button. is there any way to get these content?

my simple code.

$str1= file_get_contents("https://www.google.com");
echo $str1 ;
0

There are 0 best solutions below