PHP file_get_contents very slow when using full url

后端 未结 9 1079
我在风中等你
我在风中等你 2020-11-27 12:10

I am working with a script (that I did not create originally) that generates a pdf file from an HTML page. The problem is that it is now taking a very long time, like 1-2 mi

9条回答
  •  情书的邮戳
    2020-11-27 12:39

    Can you try fetching that url, on the server, from the command line? curl or wget come to mind. If those retrieve the URL at a normal speed, then it's not a network problem and most likely something in the apache/php setup.

提交回复
热议问题