Directly open the link display is very fast is the download or online access to information very slow how to speed up?
Here is the result of the operation (it took 17 seconds to simply not tolerate) <如果 使用get_file_contents="" 用这个函数要="" 18s="">
I want to download this image and rename it to JPG format.
Reply content:
Directly open the link display is very fast is the download or online access to information very slow how to speed up?
Here is the result of the operation (it took 17 seconds to simply not tolerate) <如果 使用get_file_contents="" 用这个函数要="" 18s="">
I want to download this image and rename it to JPG format.
This is the equivalent of downloading twice, depending on your server speed, will certainly be slow.
Since you want to picture size, size, format. Instead of PHP, with JS to get on it, so the calculation is the client to get, just fine.
It is slower to get remote picture information with this function.
You can try to get_file_content get it, save it locally imagegetsize , and see if it can be faster.