I'm trying to use file_get_contents() to grab only Name from fake name generator site(https://fakena.me/fake-name/), however I'm getting the following warning:
file_get_contents() stream does not support seeking
I dont need entire content of the page. I need only Name section in this site: https://fakena.me/fake-name/.
My code:
$name= file_get_contents('https://fakena.me/fake-name/', NULL, NULL, 849, 32);
Its working well in localhost, showing error only in live website.