Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/file/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Performance wget很快,但php file()函数太慢_Performance_File - Fatal编程技术网

Performance wget很快,但php file()函数太慢

Performance wget很快,但php file()函数太慢,performance,file,Performance,File,速度非常快。大约1秒 但是file()php函数太慢,大约需要10秒 我不用bind。只需使用ISP名称服务器 当我尝试nslookup dicksportinggoods.com时,只需1秒或更短的时间 我的操作系统是centos 5.x 我不知道怎么了…你忘了问问题。你需要什么帮助?对我来说,和wget一样快。显示您的代码。 wget "http://www.dickssportinggoods.com/product/index.jsp?productId=45866296" -O d.h

速度非常快。大约1秒

但是
file()
php函数太慢,大约需要10秒

我不用bind。只需使用ISP名称服务器

当我尝试
nslookup dicksportinggoods.com
时,只需1秒或更短的时间

我的操作系统是centos 5.x


我不知道怎么了…

你忘了问问题。你需要什么帮助?对我来说,
wget
一样快。显示您的代码。
wget "http://www.dickssportinggoods.com/product/index.jsp?productId=45866296" -O d.html