Answer the question
In order to leave comments, you need to log in
How to scrape a website in php?
Good afternoon!
I am trying to get html content from a page using the file_get_contents function. I get content from some sites without any problems, but from some I get an error Warning: file_get_contents failed to open stream: HTTP request failed! . What could be the reason?
Answer the question
In order to leave comments, you need to log in
file_get_contents
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question