For those who dislikes classes, add curl_file_create