downloadAvatar

downloads a file from a url and stores it locally for avatar use by id_member. - supports GIF, JPG, PNG, BMP and WBMP formats. - detects if GD2 is available. - uses resizeImageFile() to resize to max_width by max_height, and saves the result to a file. - updates the database info for the member's avatar. - returns whether the download and resize was successful.
Parameters Summary
string $url
int $memID
int $max_width
int $max_height