I'm new to PHP and WordPress, and i need to import image from a offshore website with the WordPress function download_URL().
My problem is, i have URL that look like that :
But i have also URL that look like that :
And can i have remove everything that is after the .extension if there something?