I want to grab some text from website with PHP script and I found file_get_contents will cost about 1 second. But it only needs 300ms to download the whole page if i directly open the URL in Chrome ! (same computer same network same URL)
Is there anyone can explain this??
I want to know why file_get_contents is slower than Chrome , not comparing with curl.