I'm coping external file with copy()
and then resize it with ImageMagick.
Will php wait until image been downloaded and only after that 开发者_如何学编程begin converting image ?
For example
copy("http://sstatic.net/stackoverflow/img/sprites.png","newfile.png");
Here I convert downloaded image exec("nice -n 19 convert -resize 500x500 ....
Yes, it will be wait for it,
But better in this way to use curl with timeout
精彩评论