Answer the question
In order to leave comments, you need to log in
How to download photos from classmates php+curl?
The ok.ru API, when calling the users.GetCurrent method, returns the following image url,
https://i.mycdn.me/image?id=867417818889&t=33&plc=API&ts=00000012323000000460&aid=1266517504&tkn=*GZnU3ZiG9vIztk7aHwE7-FYpdwA
Answer the question
In order to leave comments, you need to log in
there is no image format in it, you can of course download it by writing the jpg format ($newname = time() . '.jpg'), but what if there will ever be a png?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question