I use
copy($url, $localFolder);
to copy remote images to my local host. It works with image URL’s which have “www”, but doesn’t work when the URL doesn’t have “www” (most likely because its URL is http://subdomain.domain.com/image.jpg). An example is:
I get this error in my browser:
Firefox can't find the server at www.
Do you know where I can insert the “www” to make this work?