Hi
When i use the file_get_contents function to retrive data from multiple url by using while loop, the codei works fine but it loads very slow. Can any one know what is the problem on my php code?
file_get_contents function inside the loop
Moderator: General Moderators
Re: file_get_contents function inside the loop
It's a blocking request, so it's bound to be slow. Consider looking at curl_multi or Guzzle for asynchronous requests.